-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jerry,

On 4/13/2009 11:15 PM, jerrySheen wrote:
> As we are dealing with sessions that are no [longer accessible], this action
> would have no effect on any live sessions thus no inconsistencies.
> 
>> if YES, please furnish some sample code or at least direct me towards the
>> solutions.

You could certainly look at the code for the
org.apache.catalina.session.JDBCStore class.

>> Isn't [something already] happening now?
>
> Yes but only at server restarts.

Server restarts or browser restarts?

> what i am trying to implement here is session persistence across browser
> restarts. ie. I would like to maintain the session state even if the browser
> is closed and restarted at which point a new session is started. 

I think you want to change the cookie behavior, not go mucking-around
with the session itself. All you really need is the browser to remember
the JSESSIONID cookie across a browser restart.

> now i would like to persist the old session by maintaining the session id
> inside a cookie, and compare this id against the session id stored in
> 'sessionIdCol="id" ', then copy the session data stored as blob in
> '''sessionDataCol = "data" ' and assign this data to the new session.

This seems like more work than necessary. Why not "fix" the JSESSIONID
cookie?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknmkxUACgkQ9CaO5/Lv0PCu/ACffl4CPLTEISX8Ri4IAMmVOt61
DlIAn2zwanuZYdBxJjQ85nCeum5f555K
=l8Ey
-----END PGP SIGNATURE-----

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

Reply via email to