Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

About Transfering Session between Multiple Web Apps in a Server

  Asked By: Grant    Date: Mar 19    Category: Java    Views: 1080
  

We have a problem about transfering HttpSession information between multipe Web Apps in single Web Server

Is it possible to access a web app's HttpSession from another Web App on same server when a request comes from a client who has already a session with first web app?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Boyce Fischer     Answered On: Mar 19

No you can’t. It has security implications. A bad webapp can act like a
virus, damaging session  info of other webapps (iirc you could do it in
servlet 1.x spec). But I think some app  servers support it by creating
a
single http session for both web  apps. For example you can create a
single session between a webapp running in Lotus Domino and another one
running in Websphere. I think it should be possible to get that
behavior
from other servers too. Check the docs of your server….

 
Answer #2    Answered By: Stacy Cunningham     Answered On: Mar 19

Tomcat has two webapps that come with its package. They're named
"admin" and "manager" and allow you to start/stop other webapps and see
their session  information as well. Maybe this could be a start point.
But be very careful in doing this. You may even open a security hole in
your system.

 




Tagged: