"G.Nagarajan" wrote:

>
> How is it actually done internally? i.e., is there a thread similar to the
> garbage
> collector which checks the current sessions or is the session invalidated
> only
> when a request comes from the client. The second option will mean that the
> objects
> in the session will be occupying memory till the server is shutdown.
>

Tomcat uses a background thread that times sessions out.  By default, it checks
once per minute.

> Nagaraj.

Craig McClanahan


Reply via email to