• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing session of other application on same server

 
Ravish Ahuja
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
Is there a way to access session of another application on the same server. I have two applications on one server.......

Any help will be highly appreciated.
Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Taken from:
http://wiki.apache.org/jakarta-tomcat/HowTo


How do I share sessions across web apps?

You cannot share sessions directly across web apps, as that would be a violation of the Servlet Specification. There are workarounds, including using a singleton class loaded from the common classloader repository to hold shared information, or putting some of this shared information in a database or another data store. Some of these approaches have been discussed on the [WWW] tomcat-user mailing list, whose archives you should search for more information.

Sharing sessions across containers for clustering or replication purposes is a different matter altogether.


Other containers may provide a non-spec way of doing this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!