Two Laptop Bag
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Keeping two sessions alive !!" Watch "Keeping two sessions alive !!" New topic

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: 364
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

Joined: May 26, 2003
Posts: 33132

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]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Keeping two sessions alive !!
It's not a secret anymore!