This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Apparently Logout doesn't seem to work in my Application  RSS feed

 
Arun Giridharan
Ranch Hand
Posts: 290
Debian Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21047
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!