Geoff: Thanks very much for the authoritative information. We are going
to switch to Memory as soon as possible.  I'm assuming that Dynamic has
the same semantics as Memory and also shares the session data across
servlets.

Our users DO have several windows open at once with different servlets,
so it's entirely possible that we've been causing them problems with
File sessions.

Again, thanks.

Cheers!
--
David Hancock | [EMAIL PROTECTED] | 410-266-4384 


-----Original Message-----
From: Geoffrey Talvola [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 10:42 AM
To: Hancock, David (DHANCOCK); webware-discuss@lists.sourceforge.net
Subject: RE: [Webware-discuss] RE: Expiration problem after switching to
Dynamic sessions


Hancock, David wrote:
> New question, similar to the old question: Are there some
> semantic differences in how in-memory sessions 
> are handled vs. file-based sessions?

Yes, there are important differences between the two if there are
multiple
servlets simultaneously accessing the same session.

With in-memory sessions, one servlet immediately sees the changes made
by
another servlet since there is only one copy of the session object,
shared
among all servlets.

With file-based sessions, however, each servlet has a _separate_ copy of
the
session object loaded from the pickle on disk as needed, and that data
is
pickled back to disk at the end of the transaction, WIPING OUT ANY
CHANGES
that were made in the session by another servlet.  This can lead to
unpredicable buggy behavior if you are not careful.

I feel that the Memory session store leads to more predictable behavior,
so
that's what I would recommend using in most cases.

- Geoff


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to