Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2130
  • Last Modified:

logout

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
0
amaranadh
Asked:
amaranadh
  • 2
1 Solution
 
jkna_gunnCommented:
put some code in that page to detect if the session is valid or not
if it is not then redirect the page to somewhere else


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

0
 
ashsmashCommented:
Sorry for the previous mail..It should be like:

<script>
      history.forward();
</script>
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now