This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 8904

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

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: 1849
David ,
Cant you use url rewriting???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i share the session between webapps?
 
Similar Threads
cannot get session variables
Form Based authentication
passing the session from one application to another
Sharing session across servlet context
Sharing Session across ServletContext