I’m trying to clear session in ‘logout’ link usingSession.Abandon();. After Logout I redirected back to login page.But even after logout I could visit previous pages using browser’s back button. How can I solve it?
I’m trying to clear session in ‘logout’ link using Session.Abandon(); . After Logout I
Share
Based on your comments, your session HAS been abandoned.
What you’re seeing is a “snapshot” of the page saved in the cache by the browser.
As long as in your code behind you make sure that you have a valid session before allowing the user to perform any tasks on your pages, you should be fine.
There are various answers on how to try and disable the cache, so that pressing the back button won’t show the previous page – but as far as it goes to your question – you HAVE logged out and your session IS gone…