tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul" <paul.bras...@roadrunner.uk.com>
Subject Re: Session scope problem
Date Fri, 28 Sep 2001 13:46:07 GMT
Thanks for the answer

I got round the problem be obtaining the different context form
getServeltcontext.getContext and passing my information from the original
context session to the new  context using  parameters

----- Original Message -----
From: "Craig R. McClanahan" <craigmcc@apache.org>
To: <tomcat-user@jakarta.apache.org>
Sent: Friday, September 28, 2001 2:37 AM
Subject: Re: Session scope problem


>
>
> On Thu, 27 Sep 2001, paul wrote:
>
> > Date: Thu, 27 Sep 2001 11:08:24 +0100
> > From: paul <paul.brasted@roadrunner.uk.com>
> > Reply-To: tomcat-user@jakarta.apache.org
> > To: tomcat-user@jakarta.apache.org
> > Subject: Session scope problem
> >
> > Is it true that the session object is only valid in a given context/Web
app
> > which means that if you change context you lose all your stored objects.
> >
> > ..very annoying..why?
> >
> > Surley a seesion is one browser one server irrespective of the pages
> > visited.
> >
>
> Not if you are talking to multiple web applications.  See the servlet
> specification for details:
>
>   http://java.sun.com/products/servlet/download.html
>
> Remember that each web application is loaded from a separate class loader,
> and the classes in web app #1 cannot see the classes in web app #2.
> Therefore, any session attributes you created in #1, but tried to access
> in #2, would through ClassNotFoundException errors.
>
> If you really want the same session state to apply to all of your
> "applications", make sure that they are all packaged into a single web
> app.
>
> > Thanks
> >
> >
>
> Craig McClanahan
>
>


Mime
View raw message