aspose file tools
The moose likes Servlets and the fly likes Apparently Logout doesn't seem to work in my Application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Apparently Logout doesn Watch "Apparently Logout doesn New topic
Author

Apparently Logout doesn't seem to work in my Application

Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

Hello ,

I am building a small app , whenever i click on logout i get into the first page and when try to click on back button of the browser it can navigate to my previous state that is really bad , i did bit modification in my SessionFilter class



but it seems that , i'm getting the same old behavior.

this is my logout code
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19232

If you need to invalidate the session, just call invalidate() on the HttpSession object. To invalidate a regular cookie, set the max age to a negative value (not 0).


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Apparently Logout doesn't seem to work in my Application
 
Similar Threads
Again back button wiht logout link
LogOut.jsp
Invalidating session in a jsp
logout from page with frames
object dies when redirect=true