[Zope] Logout: Prompt pops up again
Thomas Guettler
Thomas Guettler <thomas@thomas-guettler.de>
Thu, 13 Feb 2003 20:13:52 +0100
Hi!
If I use the logout method like this:
def logout_(self, REQUEST, RESPONSE):
"""
Logout current user
Stolen from: App/Management.py
"""
p = getattr(REQUEST, '_logout_path', None)
if p is not None:
return apply(self.restrictedTraverse(p))
realm=RESPONSE.realm
print "realm:", realm
RESPONSE.setStatus(401)
RESPONSE.setHeader('WWW-Authenticate', 'basic realm="%s"' % realm, 1)
RESPONSE.setBody(self.logout(refresh=0))
return
The browser pops up a prompt where I should login again. But I login
into the logout page which is senseless. Has someone a solution? I
tried a redirect to a public method but this does not work.
thomas
--
Thomas Guettler <guettli@thomas-guettler.de>
http://www.thomas-guettler.de