wood burning stoves
The moose likes Servlets and the fly likes Keeping two sessions alive !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Keeping two sessions alive !!" Watch "Keeping two sessions alive !!" New topic
Author

Keeping two sessions alive !!

Shilpa Bhargava
Ranch Hand

Joined: Sep 15, 2002
Posts: 39
Hi There,

I have a parent site and a child site both hosted on different servers and both have different session timeouts !User navigates from parent to child...

The problem is when the user is browsing on the child site, how can a timeout of the parent site be avoided ??

No Javascript !

Please help !!
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
can you pass the session data from one server/app to the other via the request object and then back again? Then you can reset the session upon retrieval.


No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31419
    
184

Shilpa,
Another alternative is to have the child make a request to the parent each time a transaction occurs on the child site. The parent would update the session to keep it alive and the child would ignore the result and continue processing.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Keeping two sessions alive !!