aspose file tools*
The moose likes Struts and the fly likes Session Management problem in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Session Management problem in Struts" Watch "Session Management problem in Struts" New topic
Author

Session Management problem in Struts

patriot indian
Greenhorn

Joined: May 20, 2009
Posts: 9
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

Joined: Sep 29, 2008
Posts: 12617

Disable caching.
vbala vmurugan
Greenhorn

Joined: Jun 20, 2008
Posts: 10
1) session.invalidate();
2) disable catch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Management problem in Struts