"Nimmons, Buster" wrote:

> How can I use session information (Attributes) in one web application from
> another web application. I've noticed that the session IDs from one
> application to another are different and then I don't have the users
> information
> that I collected from the login/security application available to other
> applications.
>

There is no mechanism to share session (or application) scope data between web
applications.  This makes sense when you understand that the different web apps are
running under different classloaders, with different sets of classes available.  A
session attribute stored by one webapp would not be accessible from another even if
the spec allowed it -- because the second webapp would not be able to load the
required class.

For shared authentication information, you should consider using the "single sign
on" capability provided by some servlet containers.  That way, your user only has
to sign in once, but you can use the defined security roles for the shared user
across all of the supported apps.

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to