File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Session Management problem in Struts

patriot indian

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

Joined: Sep 29, 2008
Posts: 12617

Disable caching.
vbala vmurugan

Joined: Jun 20, 2008
Posts: 10
1) session.invalidate();
2) disable catch
I agree. Here's the link:
subject: Session Management problem in Struts
jQuery in Action, 3rd edition