In the logout link button click event I have cleared the session variables. I am checking these session variables for null values at each page’s load event. If it has the null value redirecting them to the login page.
But the problem is whenever I click the browser back button, the page_load event won’t get called. For that I have cleared the the browser cache history.
Please help me someone where I am missing…
In the logout link button click event I have cleared the session variables. I
Share
You will need to make sure the pages behind the login (those that can only be accessed after login) are not cached in the browser:
If using forms authentication, you will also need to abandon the session and logout:
See this, this and this.