Wednesday, August 18, 2010

How to prevent going back to previous page using back button after you logout in asp?

im submitting a form and getting logged out. But after i log out im able to see previous page by clicking back button. I wanted to avoid this and want to redirect him to previous page. How can i do this. Plz tell me the code.How to prevent going back to previous page using back button after you logout in asp?
You can also add meta tags that will prevent caching, since your browser is displaying a cached page. Check Microsoft instructions for IE at link below:How to prevent going back to previous page using back button after you logout in asp?
If you have classic asp, you can do a ';session.abandon()'; in the logout page, and they should not see the info if they refresh by going back.





if you have asp.net you can use the built in login/out controls.

No comments:

Post a Comment