Issue 219 - Logout not working (IE problem?)
Hi, I am having some problems when I try to log out of an application I have built using Zope. I have used a Cookie Crumbler and am logging in to the application using a modified version of the login_form created. The problem is when I try to go to the logout page: http://locahost:8080/manage_zmi_logout. I have tried it with different browsers and, while the results vary, nothing is working as I want it to. In IE6, there is a pop-up, asking me to enter my username and password. I know that this is to log out of the http authentication service, but why does it appear three times? At least at the end of that, I'm logged out. In Netscape 4.7, it fails to connect to authorise the username and password. Does anybody know what security settings I should have in my browser (preferably both of them) to properly log out of the application. If possible, I'd like to do it without the pop-up. I looked the problem up on the net and found this: http://collector.zope.org/Zope/219. Any update would be welcome. TIA, Micheál Healy
On Fri, 18 Oct 2002 09:58:57 +0100 Micheál Healy <michael.healy@engitech.ie> wrote:
Hi,
I am having some problems when I try to log out of an application I have built using Zope. I have used a Cookie Crumbler and am logging in to the application using a modified version of the login_form created. The problem is when I try to go to the logout page: http://locahost:8080/manage_zmi_logout.
manage_zmi_logout uses HTTP basic auth, which has no notion of "log out". CookieCrumbler uses cookies for authentication, to log out just expire the cookies. something like this python snippit: context.RESPONSE.expireCookie('__ac', path='/') Add one of these lines for each cookie name specified in CookieCrumbler. Then return a "logged out" page. The CMF includes an example of this. hth, -Casey
Thanks - worked a treat!! ----- Original Message ----- From: "Casey Duncan" <casey@zope.com> To: "Micheál Healy" <michael.healy@engitech.ie> Cc: <zope@zope.org> Sent: Friday, October 18, 2002 2:43 PM Subject: Re: [Zope] Issue 219 - Logout not working (IE problem?)
On Fri, 18 Oct 2002 09:58:57 +0100 Micheál Healy <michael.healy@engitech.ie> wrote:
Hi,
I am having some problems when I try to log out of an application I have built using Zope. I have used a Cookie Crumbler and am logging in to the application using a modified version of the login_form created. The problem is when I try to go to the logout page: http://locahost:8080/manage_zmi_logout.
manage_zmi_logout uses HTTP basic auth, which has no notion of "log out". CookieCrumbler uses cookies for authentication, to log out just expire the cookies.
something like this python snippit:
context.RESPONSE.expireCookie('__ac', path='/')
Add one of these lines for each cookie name specified in CookieCrumbler. Then return a "logged out" page. The CMF includes an example of this.
hth,
-Casey
_______________________________________________ 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 )
participants (2)
-
Casey Duncan -
Micheál Healy