List Info

Thread: SessionFilter - Logout session




SessionFilter - Logout session
user name
2006-04-11 15:16:28
Hi Remi,

  Thanks for the response unfortunately I have tried what
you have
proposed and find it doesn't exactly work the way I need.

If I just do cherrypy.session.clear() it will clear the dict
containing
session variables but the session doesn't get terminated
(no methods
are executed for the freeing of the session) and it also
clears out
session["_id"].  If a user tries to log back in,
it will give them an
error because the _id is not refilled.

Is there anyway to get Cherrypy to destroy a session right
now as if it
had timed out? (ie: executing the appropriate methods,
clearing the
variables, and if the user tries to log back in, gives them
a brand new
session instance.)

Thanks,

Code Penguin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )