Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Management problem in Struts

 
patriot indian
Greenhorn
Posts: 9
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disable caching.
 
vbala vmurugan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) session.invalidate();
2) disable catch
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic