• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session timeout in different JVM

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could manage the session manually with application logic instead of relying on the server's session mechanism, although it requires some work.
 
PS Wong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which session item can I manually set in application logic? Please give me some hints, thank you so much.

Regards...PS
 
Scott Selikoff
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Store the session information in a database.
reply
    Bookmark Topic Watch Topic
  • New Topic