On Thu, Oct 20, 2011 at 7:52 AM, André Warnier <[email protected]> wrote:
> 1) Tomcat (probably) doesn't spend its time all the time scanning stored
> sessions to see if one has expired, and deleting it.
Actually, it does. That's what session listeners depend on.
So, for example, I can have a ShoppingCart with a method like
public void valueUnbound(HttpSessionBindingEvent httpsessionbindingevent)
{
empty(); /* remove reserved status from items */
}
If the session times out without the cart contents being purchased,
the cart returns any items it contains to inventory. Very handy :-)
FWIW,
--
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]