[Zope] LoginManager - logging out

Bill Welch bill@carbonecho.com
Mon, 18 Dec 2000 15:13:48 +0000 (GMT)


> authentication and that the browser caches the credential. This means
> unless you shut down your browser, whatever you do, you are back to
> square one.

Besides shutting down your browser, you trash its credential. Create a
simple DTML method that raises the 'Unauthorized' exception. Direct your
brower to that method. The browser will, in some form or manner, request
that you authenticate again. Now the important part, don't cancel the
reauthentication! Type in some garbage user name and password and send it.
Your brower will give you another chance to authenticate, but this one you
cancel and you're back to being anonymous as far as Zope is concerned.

Bill.