Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session.abandon not working properly

Status
Not open for further replies.

skitty123

Technical User
May 4, 2004
56
US
I am using Foms Authentication in my .NEt application.
When the appliction is staretd in a new browser window, my authentication works fine, ie does not allow user to go to any page without first clearing the login screen.
However if I login, then logout and then try to access other pages I can do so successfully.
I have a logout button on my application which runs the following code:
Session.Abandon();

why is this not working? do I need to close the browser window on logout ( if yes how can I do this via code?)
please help!!!
 
I found out that I was missing this line:
FormsAuthentication.SignOut();

now works fine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top