[Zope] Sessions question
List Subscriber @ Neurobs
list_subscriber@neurobs.com
Wed, 14 Aug 2002 23:28:39 -0700
Looked at it.... surprisingly it does not implement an explicit logout
method. I guess once the session expires, it automatically logs out the
user since auth info is maintained in the session object.
Moreover I am using a customized user folder, but obviously can apply
any changes required.
So I am still stuck with the original problem. How to logout a user once
a session he or she initiated expires??
Thanks
AM
Chris McDonough wrote:
>Well, someone has implemented a Session User Folder (I spied it on
>Zope.org a while back) that might serve this purpose. Let's see if I
>can find it...aha! http://www.zope.org/Members/levi/SessionUserFolder
>. I've not used it so I'm not sure how it works...
>
>HTH,
>
>- C
>
>On Tue, 2002-08-13 at 07:25, List Subscriber @ Neurobs wrote:
>
>>Hi,
>>
>>Thanks for the answers. After review of the mentioned docs, I realize
>>that is no surefire way to logout a user if a session initiated by him
>>or her expires.. So how do I handle this thing?? How can I make sure
>>that is a user's session expires he or she specifically gets properly
>>logged out?? Is it even possible??
>>
>>TIA
>>AM
>>
>>Chris McDonough wrote:
>>
>>>>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
>>>
>>>
>>>
>>>_______________________________________________
>>>Zope maillist - Zope@zope.org
>>>http://lists.zope.org/mailman/listinfo/zope
>>>** No cross posts or HTML encoding! **
>>>(Related lists -
>>>http://lists.zope.org/mailman/listinfo/zope-announce
>>>http://lists.zope.org/mailman/listinfo/zope-dev )
>>>
>>>
>>
>>
>>_______________________________________________
>>Zope maillist - Zope@zope.org
>>http://lists.zope.org/mailman/listinfo/zope
>>** No cross posts or HTML encoding! **
>>(Related lists -
>> http://lists.zope.org/mailman/listinfo/zope-announce
>> http://lists.zope.org/mailman/listinfo/zope-dev )
>>
>
>
>
>