• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

session maintainence between applications in different servers

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,



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

applications deployed in different servers.





details:

--------

Assume

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.



serv1page.jsp

-------

<html>

<form>

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

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

</IFRAME>

</form>

</html>



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", "");





issue:

------

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.



Thanks,

vcb
 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Are you here to take over the surface world? Because this tiny ad will stop you!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic