File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Application session out on clicking browser back button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Application session out on clicking browser back button" Watch "Application session out on clicking browser back button" New topic
Author

Application session out on clicking browser back button

Micheal Scott
Greenhorn

Joined: Dec 03, 2010
Posts: 1
My application is facing one problem, when the user uses http://myapp.mycompnay.com, the session is timing out while navigating back from other other company applications. But this problem is not happening always if the user uses with 'www' before my application. We need to retain the session as the user can login in one application and navigate back and forth to all other company apps. The problem is happening only when the user clicks on browser back button to comeback to my application. The authentication module is common in all the applications, and rest of the applications do not have this problem.

I use SunOne6.1 and Websphere application server. Does anybody have this kind of problem? since login module is same in all apps, do you have any idea whether this problem is related to SunOne or Websphere or Plug-in configurations?
Brian Hennessy
Ranch Hand

Joined: Oct 24, 2005
Posts: 57
Hi Micheal
Is it possible that as you navigate between each application the JSESSIONID is changing (being over written) . This assumes the applications are hosted in different JVMs?

A scenario like this

- Login assign JESSIONID:12345
- Navigate around your application no problems
- Navigate to other company application , this applications over writes JSESSIONID in browser . Browser now has JSESSIONID:54321
- From other application navigate back to yours. Browser sends JSESSIONID:54321 your app doesn't recognise this jsession and your req.getSession returns null ?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application session out on clicking browser back button