aspose file tools*
The moose likes Servlets and the fly likes Session gets destroyed when invoking application of another server in a same browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session gets destroyed when invoking application of another server in a same browser" Watch "Session gets destroyed when invoking application of another server in a same browser" New topic
Author

Session gets destroyed when invoking application of another server in a same browser

Sunil Chavan
Greenhorn

Joined: Apr 11, 2007
Posts: 28
Hi,

When i am trying to invoke application of another application server from the same browser my existing session gets destroyed. How can i retain my existing session?

Thanks

Sunil Chavan.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I don't see how that's possible, unless you're exceeding the session timeout, have a periodic update to make sure you're in the same app, or something. That'd be like saying you're logged in to gmail, go to cnn, and come back and your gmail session is gone.

Could you provide more information?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30929
    
158

Sunil,
Are the applications on the same domain? For example faq.javaranch.com vs mine.javaranch.com? If so, they could be using the same path for the cookie. This happened to us - application 2 was overwriting the cookie of application 1 effectively disconnecting the session of application 1 from the user.


[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
Sunil Chavan
Greenhorn

Joined: Apr 11, 2007
Posts: 28
Hi Jeanne & David,

Thanks for your quick reply.

Could you provide more information?


I have two applications on one application server but two different manage servers.

In my first (parent) application i have frame where i display pages from my second application.

So after invoking second application if i want to continue working on pages of first application it gives me session null error.

I hope this will give you guys fair idea of my application environment. If still more information required then let me know.

Thanks for your help so far.

Sunil Chavan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session gets destroyed when invoking application of another server in a same browser