• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i share the session between webapps?

 
David Cuesta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not possible to share session info between web apps.
 
David Cuesta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain me more?
 
jon boydell
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or, you could persist the session data. Then share it from there between web apps.
 
Rahul Mahindrakar
Ranch Hand
Posts: 1868
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David ,
Cant you use url rewriting???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic