Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Programming and Misc. Tidbits :
When I upload a new version of any servlet to the machine, all the current sessions get invalidated or erased...Is this a bug?
----------
From: "Mike Varley" mvarley@blastradius.com
To: "Java Apache Users" java-apache-users@list.working-dogs.com
Subject: Re: session problem
Date: Wed, May 19, 1999, 8:42 AM


To quote Jason Hunter (Java Servlet, O'Reilly press):
"this is not a bug, its a feature.  Most servers automatically reload a
servlet after its class file (under the default servlet directory, such as
server_root/servlets) changes.  Its an on the fly upgrade procedure that
greatly speeds up the development-test cycle -- and allows for long server
up times."

When you upload a new servlet class, any persistant classes that were used
by that servlet also get reset.  I guess this includes sessions.  To the
best of my knowledge, there is no way to "turn this off".

hth

MV

----- Original Message -----
From: Brad Chesman chess@webstakes.com
To: Java Apache Users java-apache-users@list.working-dogs.com
Sent: Wednesday, May 19, 1999 8:23 AM
Subject: session problem


> I am using Jserv 1.0b4 and am having a slight problem with sessions.
> When I upload a new version of any servlet to the machine all the
> current sessions get invalidated or erased. Is this a bug? Can I change
> this in the config somehow?
>
> Brad Chesman
[Append to This Answer]
Previous: (Answer) RMI and Apache JServ...it does work!
Next: (Answer) How do I properly parse a query string that I receive from the browser? I am having trrouble...
This document is: http://java.apache.org/faq/?file=180
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.