all groups > asp.net security > june 2006 >
You're in the

asp.net security

group:

Authenticate newly created Member


Authenticate newly created Member rshillington
6/28/2006 12:13:10 PM
asp.net security:
I have my own subscription page that prompts for Membership info, among
other things. when the user submits a valid page I would like to 1)
Membeship.CreateUser and 2) automatically log in the newly created
user. Step 1 is simple, but it's not clear to me how to do step 2

Thanks in advance for any suggestions,

Ralph Shillington
Re: Authenticate newly created Member PeterKellner
6/29/2006 11:47:15 AM
On 28 Jun 2006 12:13:10 -0700, "rshillington" <rshillington@gmail.com>
[quoted text, click to view]

for step 2, you can do this to get the user logged in.

FormsAuthentication.Authenticate("username", "password");

Peter Kellner
http://peterkellner.net
Peter Kellner
AddThis Social Bookmark Button