This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Management problem in Struts

 
patriot indian
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing a peculiar problem....I am having an application in which there are 2 different types of users...each shown a different page after logging in...I am chacking at each page whther a user has logged in and if he is not logged in am redirecting him to login page...But the problem is Suppose one user logs in and after sometime he is logging out...Now second user logs in...On pressing back button he is redirected to the pages of the other user and he can do all the stuffs..How to prevent him from accessing that data...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disable caching.
 
vbala vmurugan
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) session.invalidate();
2) disable catch
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic