Solved

logout

Posted on 2004-04-11
5
2,123 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
0
Comment
Question by:amaranadh
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
jkna_gunn earned 21 total points
ID: 10812030
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
 

Expert Comment

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

0
 

Expert Comment

by:ashsmash
ID: 10982024
Sorry for the previous mail..It should be like:

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

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
An article on effective troubleshooting
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question