• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Session problem

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi try this
HttpSession session = req.getSession();
if(session.isNew()){
dosomething-----------
}
else{
session.invalidate();
}
 
reply
    Bookmark Topic Watch Topic
  • New Topic