On Tue, 2002-08-13 at 04:03, List Subscriber @ Neurobs wrote:
Hi,
I recently updated my python UF product to use Zope's built in Sessions instead of CST. Now I am faced with two problems:
1. How to completely expire all session stuff on logout. At this point of time I am using the following terminate session function to do so:
def __terminate_session (Self,REQUEST): REQUEST.SESSION.invalidate() REQUEST.SESSION.getBrowserIdManager().flushBrowserIdCookie()
Looks good to me.
2. How can I call my UF's user_logout function on expiry of the session??
In CST there was a field that allowed me to set up a method to be called on expiry. I didnt find any such option in the session_data_manager or browser_id_manager. So how do I do that??
This functionality has moved to the transient object container ('/temp_folder/session_data'). See http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/Sessions.stx and search for " Using Session onAdd and onDelete Events". - C