It is a common problem in programming that if a user is logged in to a secure page and loggs out of that page. Then clicking on the back button of browser gets a user back to that secure page (regardless of the fact that the user has logged out of the page.)
Ideally, the secure page should bot be shown, in case the user has logged out of the page due to security concerns. I found it very hard to crack. But finally I got a magic function, that handles this problem perfectly. This code worked for me perfectly in IE 6.0, FireFox 2.0 and chrome 1.0.
The code is:
//Put this line in page load event of the page:
//Put this code, where you have to logout a user:
If you don’t want to remove all the sessions on logout, then you can user below line to remove a specific session:
- The 9 hottest skills for ’09
- Code for adding JS Files at runtime and then executing Functions from currently loaded file.