views:

67

answers:

1

To authanticate users in Asp.net Membership we can call method

FormsAuthentication.Authenticate(username, password)

how can I do the same job (generate session, cookies and all other staff that Authanticate does) without users password?

I'm trying to login user over facebook connect. User's facebook id is stored within the users data. User should be signed in like a normal user.

+2  A: 

I think you can use the SetAuthCookie method.

more info here http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.setauthcookie.aspx

John Boker