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
Thomas Guettler wrote at 2003-2-13 20:13 +0100:
If I use the logout method like this: def logout_(self, REQUEST, RESPONSE): ...
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. First redirect to the place where you want the login to take place and activate your "logout_" there.
Dieter
participants (2)
-
Dieter Maurer -
Thomas Guettler