Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created website with login page and other several pages.
I have used Hyperlink for Logout click when i click on hyperlink it goes to Login page.
But problem is that when i click back arrow/button it redirect to previous page.
How to avoid these problem.
Posted

You need to use Session.Abandon().
See an example..
http://www.developerscode.com/2011/02/how-to-create-logout-page-using.html[^]
 
Share this answer
 
v2
When your logging out be sure to abandon all the session values stored for log in.
 
Share this answer
 
v2
on page load event check the session is empty or not in if condition if the session is empty redirect to login 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