Forum Moderators: open

Message Too Old, No Replies

Automatically Log In a User

         

andrewsmd

2:52 pm on Aug 31, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am trying to edit an application. Right now there is an impersonate user feature which does what it's name implies. However, when you click on the end impersonation button, I am having a problem. I have the actual user's username stored in a session variable. My question is, how do I log that user back in. I really just need to log a user in with vb based on their username. Thanks,

marcel

3:00 pm on Aug 31, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One option is to set the AuthCookie:
FormsAuthentication.SetAuthCookie(userName, False)

andrewsmd

3:30 pm on Aug 31, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thank you very much, I was looking in the formsauthentication for something, I just couldn't find it.