> 1. Add a new "on_renew_session" (or
something
> similar) callback
> 2. Call "on_create_session" even if it's
just
> an old session being re-used
> 3. Don't reuse expired session IDs and create
> new ones instead.
Item #1 is viable. Item #2 would work for me, but
as thakadu mentions, there are probably reasons for
differentiating between new/renew sessions. Item #3
may be useful for other reasons, though it doesn't
work for my use case -- I want a new session when
the server restarts, regardless if the session ID
has expired.
A fourth possibility: close_open_sessions()
This could be called on server startup (possibly
a configuration option) when sessions are not
viable beyond the server process lifetime.
Thanks for your explanation and response.
Jeff Bauer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|