Thanks for the link that was useful. So the key idea to understand is
that there is a background thread that does all the cleanup and this
background thread executes on a timer not on very request arriving a
the server.

I am surprised at the limitations of the Persistent Manager it's that
it should be an easy thing to backup and load sessions on every
request. Is there something about how tomcat is implemented that makes
implementing persistence on load and save difficult?

Cheers
Adib

On Tue, Jan 25, 2011 at 4:24 AM, Reinwald Warapen
<reinwal...@directi.com> wrote:
> On 1/25/2011 5:02 PM, Adib wrote:
>>
>> Hi,
>>
>> I am trying to understand the settings on the persistent session
>> manager on tomcat 6 and 7. It seems that the persistent session
>> manager is primarily meant for the purpose of swapping IDLE sessions
>> to persistent storage and then hope that they expire, I can see the
>> value of this given that many users abandon sites without logging out.
>> It also seems that the persisent manager is not designed to persist
>> every session at the end of every request so that at the start of
>> every request the session is read from the store and the end of the
>> request the session is written to store, is this understanding
>> correct.
>
> http://reinwaldwarapen.com/2011/01/17/storing-and-sharing-sessions-among-standalone-tomcat-instances/
>>
>> I have also been puzzling over the meanings of maxIdleSwap vs.
>> maxIdleBackup not sure why these two settings exist or what is
>> difference between them and the practical use case for them? It is
>> clear to me what the idle session is but  what is meant by backup and
>> how is it different than a swap?
>>
>> Thanks
>> Adib
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to