Re: Log out problem

"Leung, Victor" <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
any chance you are reading from cache when you click on the back button?
Also, make sure you put no-cache or no-store in the headers.

-----Original Message-----
From: Aasim [mailto:[email protected]]
Sent: Wednesday, March 05, 2003 5:19 PM
To: [email protected]
Subject: Log out problem



Dear Servlet-Interest users,


I have an online ordering application and I am having problems logging out.
Once a user has placed an order and he clicks on the Logoff button, I call a
servlet where I destroy the session and redirect the user to a new page with
the message that he has logged out successfully. But, when I hit the back
button on the browser, it again takes me to the previous page. I want the
user to go to the login page when he hits the back button on the browser and
force him to login again to access any of the pages, instead of the previous
page in his session.


How can I achieve this functionality?
Thanks for any help in advance!

Sincerely,


--Andy.









  _____

Do you Yahoo!?
Yahoo!  <http://rd.yahoo.com/finance/mailtagline/*http://taxes.yahoo.com/>
Tax Center - forms, calculators, tips, and more
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.