• Post Reply Bookmark Topic Watch Topic
  • New Topic

session maintainence between applications in different servers  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

We have an issue in maintaining session when we have different web

applications deployed in different servers.




1) "abc" web app deployed in server1

2) "xyz" web app deployed in server2 and

3) "est" web app deployed in server3

1) We have a serv1page.jsp with an iFrame/Frame in "abc" web app to access serv2page.jsp page in "xyz"

web app as shown below.





<IFRAME SRC="http://server2:8080/xyz/serv2page.jsp" id="aframe" name="aframe"

width="820" height="1500" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0" SCROLLING="auto">




2) The serv2page.jsp can open a new browser window (using javascript window.open function) to access

serv3page.jsp in "est" web app as shown below:

code snippet for opening serv3page.jsp from serv2page.jsp


window.open("http://server3:8080/est/serv3page.jsp", "");



Suppose we have session timeout set to 3 min in the "abc" app, if the user is performing

some activity (eg submitting, refreshing etc) in the new/child browser window

(browser window displayig serv3page.jsp) ie if "est" app is active, the "abc" app will get timed out after

3 min.

But we want to maintain/reset the "abc" session active until "est" app is active.

Does any one came across this problem and is there any solution for this?

Please suggest.


Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not really very positive about leaving the session control to the app server in case of clustered environments. It would be better to do it on our own. For session timeout you can use the "early man's" way of checking time difference between 2 actions on app "abc", which would be checked by its JVM.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!