We help IT Professionals succeed at work.

logout

amaranadh
amaranadh asked
on
2,147 Views
Last Modified: 2010-08-05
hi friends

  i am developing a simple website in jsp,
in that i am getting a problem with logout

here is the code
in logout

session.invalidate();

problems is after logout
 if user clicks back option in internet explorer ,he will get previous pages also  

i want to refresh the previous (back) pages also,
please solve this problem
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
you can make javascript for that. just put
<script>
forward.history
</script>
in your logout page.

Commented:
Sorry for the previous mail..It should be like:

<script>
      history.forward();
</script>
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.