aspose file tools*
The moose likes BEA/Weblogic and the fly likes How can i share the session between webapps? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How can i share the session between webapps?" Watch "How can i share the session between webapps?" New topic
Author

How can i share the session between webapps?

David Cuesta
Greenhorn

Joined: Nov 07, 2001
Posts: 25
Hi to all, my problem is that i need to share a client session between two webapps that is running in the same JVM,
Thanks to all,
N: the version of WL is 5.1
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

It is not possible to share session info between web apps.


Groovy
David Cuesta
Greenhorn

Joined: Nov 07, 2001
Posts: 25
why?, there aren�t something trick to achieve this?, or duplicate the session, the problem is that i need to mantain a session variable that indicate the login of the user in the system, but between two webapps, a bad solution will be save the sessionid in a database and set/get the value when i need, but must to be other way
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

There is a way out.
U will have to put the data to be shared in
Servlet context.
But some servers may not give access to foreign context .
[ May 28, 2002: Message edited by: Pradeep Bhat ]
David Cuesta
Greenhorn

Joined: Nov 07, 2001
Posts: 25
Can you explain me more?
jon boydell
Greenhorn

Joined: Jul 04, 2001
Posts: 15
Or, you could persist the session data. Then share it from there between web apps.
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
David ,
Cant you use url rewriting???
 
Consider Paul's rocket mass heater.
 
subject: How can i share the session between webapps?