Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to make login ,logout with cookies or sessions..I created but after logout if click on back button it will navigate to back..
Posted

Have a look at this tip: Browser back button issue after logout[^]
 
Share this answer
 
Comments
thatraja 3-Jun-11 14:54pm    
I wish I'd write that tip/trick :( It helped many OPs
5!
Make sure you are calling Session.Abandon in your logout method so the Session is no longer valid.

http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.abandon.aspx[^]
 
Share this answer
 
You need to check on each request whether the user is already logged in or not, if not redirect to the logic page.
 
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