Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i logout from web page but when i am going back through back button i can go on all pages....some one give some idea
Posted
Updated 9-Feb-12 20:26pm
v2
Comments
Sergey Alexandrovich Kryukov 10-Feb-12 2:29am    
Not clear; and please keep in mind: our access to your hard drive is somewhat limited :-)

We don't really know what have you done to implement logout, but considering your description of the behavior, "I logout" sounds like a considerable exaggeration... :-)

--SA

1 solution

when you click on Log Out button then do this :
C#
protected void logoutBtn_click(___,___)
{
 FormsAuthentication.SignOut();
 // and set all session null here...
}

Hope this will help you.
And don't forget to mark as answer if it helps. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900