on 09-25-2008 6:15 AM
I have built a website in jsp I want to implement the log off functionality.Once user clicks on logoff and moves to next page he should not be able to go back using the back button and access the data.
How can this be done? Any ideas and code are welcome.
For the session to be terminate you will have to use session.invalidate() and to prevent going back using the bac button -- you can do this with a little bit of java scripting -- plenty of source code for the same available on the net.
Thanks,
GLM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can find the code for disabling back button by java script
http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.