[Zope] Programmatically logging out a user
Hello, How do I programmatically log out a user from Zope ? I've asked this question before, but was told to : 1. Redirect the user to a page that always raises Unauthenticated. Seemanage_zmi_logout. 2. from AccessControl.SecurityManagement import noSecurityManagernoSecurityManager() Are there any other ways out there ? Regards,Danny ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Programmatically logging out a user
+---[ Sinang, Danny ]-- | Hello, | | How do I programmatically log out a user from Zope ? | | I've asked this question before, but was told to : | | 1. Redirect the user to a page that always raises Unauthenticated. See | manage_zmi_logout. | 2. from AccessControl.SecurityManagement import noSecurityManager | noSecurityManager() | Are there any other ways out there ? That depends on the type of 'authentication' you're using. If you're using Cookie based auth, the convention for zope user folders (and CookieCrumbler) is to use the __ac cookie, so you can also try deleting that. -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Programmatically logging out a user
We use a 'home-grown' cookie-based authentication process, and when we want to log the user out we over-write the cookie with invalid data and send the user to a 'so long and thanks for all the fish' page. Jonathan - Original Message - From: Sinang, Danny To: zope@zope.org Sent: Tuesday, October 03, 2006 8:24 AM Subject: [Zope] Programmatically logging out a user Hello, How do I programmatically log out a user from Zope ? I've asked this question before, but was told to : 1. Redirect the user to a page that always raises Unauthenticated. Seemanage_zmi_logout. 2. from AccessControl.SecurityManagement import noSecurityManagernoSecurityManager() Are there any other ways out there ? Regards,Danny ___Zope maillist - Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding! **(Related lists - http://mail.zope.org/mailman/listinfo/zope-announcehttp://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )