aspose file tools*
The moose likes Websphere and the fly likes Session timeout in different JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Session timeout in different JVM" Watch "Session timeout in different JVM" New topic
Author

Session timeout in different JVM

PS Wong
Greenhorn

Joined: Feb 21, 2006
Posts: 2
Background Information
======================
Application Server: WebSphere Application Server with 2 JVMs created, server1 (port 9081) and server2 (port 9082)
Web Server: IBM HTTP Server, webServerX
Application: 2 applications, appA (installed in server1) and appB (installed in server2)

Problem Encountered
===================
User only need to login once in either appA or appB, then he can be redirected back and forth with sessionID as authentication key without furhter login action, i.e appA redirects to appB, then appB redirects back to appA. In both applications, I do the redirection by "location.replace(URL)". SessionID must be consistent through out user's operation, otherwise re-login is required.

At first, I code the redirection URL as http://sever1:9081/appA/aaa.jsp?key=sessionID and http://sever2:9082/appB/bbb.jsp?key=sessionID, it works fine in both applicaions. Later on, after I've updated the server plug-in in Web Server, I changed the redirection URL as http://webServerX/appA/aaa.jsp?key=sessionID and http://webServerX/appB/bbb.jsp?key=sessionID, then problem occurs. Whenever a redirection is triggered, the session in parent app will be killed immediately, although the child app can still function normally, it cannot be redirected back to parent app due to session ID lost.

Has anyone encountered the mentioned problem before? I'm really frustrated by this situation, would appreciate if someone could give me some advices, thousands thanks.


Regards...PS
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

You could manage the session manually with application logic instead of relying on the server's session mechanism, although it requires some work.


My Blog: Down Home Country Coding with Scott Selikoff
PS Wong
Greenhorn

Joined: Feb 21, 2006
Posts: 2
Which session item can I manually set in application logic? Please give me some hints, thank you so much.

Regards...PS
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

Store the session information in a database.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session timeout in different JVM
 
Similar Threads
suggestions regarding resume
Tomcat Load balancing using mod_rewrite
ActionForward between 2 differnt web_apps
How to start or run a application on newly created server2 on WebSphere
Remote Classpath Loader