You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Hugh J. L." <hu...@yahoo.com> on 2002/08/12 14:12:19 UTC

Question about Session in Tomcat 3.3

As I tested, when context reloads in Tomcat 3.3.1,
e.g. caused by modification of servlet class, sessions
are lost. Is it true for all Tomcat 3.3.x? Is there
any switch in source code which can change this
behavior and maintain sessions through context
reloading?

Thanks for your help.

Hugh


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Question about Session in Tomcat 3.3 -- continued...

Posted by Bill Barker <wb...@wilshire.com>.
Yes, it seems to be true that sessions are lost on reloading with
fullReload=true.  I don't think that the case of fullReload=false has been
tested much, so it is possible that there could be some strange bugs like in
3.2.x.

It looks like the best way to fix this (for the default fullReload=true
case) would be to add another hook to the API (e.g. copyContext(Context old,
Context new)).  This way, SimpleSessionStore could move the old sessions
into the new Context before they get destroyed.

Comments?

----- Original Message -----
From: "Hugh J. L." <hu...@yahoo.com>
To: "Tomcat Developers List" <to...@jakarta.apache.org>
Sent: Monday, August 12, 2002 5:50 AM
Subject: Question about Session in Tomcat 3.3 -- continued...


> I changed switch "fullReload" in ReloadInterceptor
> from true to false, and sessions are maintained
> through context reloading. (Of course, because the old
> context remains.) Is there any disadvantage if I set
> this way? Anyway fullReload=true is default setting.
>
> Thanks.
>
> Hugh
>
>
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Question about Session in Tomcat 3.3 -- continued...

Posted by "Hugh J. L." <hu...@yahoo.com>.
I changed switch "fullReload" in ReloadInterceptor
from true to false, and sessions are maintained
through context reloading. (Of course, because the old
context remains.) Is there any disadvantage if I set
this way? Anyway fullReload=true is default setting.

Thanks.

Hugh


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>