On Thu, 23 Jan 2003, shanmugampl wrote:
> Date: Thu, 23 Jan 2003 15:06:14 +0530 > From: shanmugampl <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Having same session in SingleSignOn > > Hi All, > > I am using tomcat4.1.18. I have enabled SingleSignOn in my tomcat > and this functionality is working fine. The problem is, I have some > values stored in session of application A and i want to access these > information's in Application B. But as a new Session object is getting > created for every context, i am unable to fetch the values stored. Is > there any way by which i can have the same session object for all my > application while using SingleSignOn. > The servlet spec requires that sessions be scoped per webapp, even in a single sign on environment. Even if you could share a session, it would not work anyway, because the web apps each have their own class loaders and therefore do not share classes. All you would get is ClassNotFoundException problems. You can share things between webapps by using a database, or by putting a class in shared/lib or common/lib and using a static variable there to store the common stuff. > Thanks > Shanmugam.PL Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
