Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to stop redirecting previous logged page after logout when clicking back button or pressing backspace button................... plz help..............
Posted
Comments
Prasad Khandekar 21-May-13 3:04am    
Checkout this example (http://viralpatel.net/blogs/disable-back-button-browser-javascript/)

set all the session variable to null
it might solve your porblem
 
Share this answer
 
Hi Shinju,

I faced the same issue in my project.I thinks its browser behavior,After logout when you press back button in the browser it will move to previous page implicitly and if you click any control on that page then it will not allow you to do any functionality if you have implemented code to clear all session while logout.

Other options for your question is

1)You may disable back button once logged out(Not preferable)
2)Redirect to another page, and there check user session, if it is empty then redirect to login page.

I hope this would help you a bit.

Regards,
RK
 
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