• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session problem

 
Suma K Gowda
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I'm having a frames page, once logout link on the topframe is clicked, I'm sending a request to the controllerServlet to invalide the session (session.invalidate()). This is working fine, but if I click browser back button and refresh the page, I'm getting all the data irrespective of non valid session, though I'm checking for valid session before displaying the data in the respective frames.
Please help
Push
 
lali virdi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi try this
HttpSession session = req.getSession();
if(session.isNew()){
dosomething-----------
}
else{
session.invalidate();
}
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!