Welcome to WebmasterWorld Guest from 34.229.97.16

Forum Moderators: ocean10000

Message Too Old, No Replies

Automatically Log In a User

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0


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,
3:00 pm on Aug 31, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 1, 2005
posts:732
votes: 0


One option is to set the AuthCookie:
FormsAuthentication.SetAuthCookie(userName, False)
3:30 pm on Aug 31, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0


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