> Thanks for the tips:
> 1)the logout method work with shift+reload in IE (how would clear cached
> pages from zope?)
> 2)the <dtml-raise type="Unauthorized"> method does not allow me to log
> back
> in even when I try a redirect to a different page.
> I am wondering if something is set incorrectly on my browser. If (2) works
> for you it must work for me to??
No,
actually I hadn't thought of redirecting, but I guess it can't work.
Either because the browser ignores the redirect after an 401 Unauthorized,
or because of the nature of dtml-raise which maybe prevents zope
from interpreting following code. Maybe someone can shed some light on that.
Perhaps you could try this:
<dtml-unless "AUTHENTICATED_USER.getUserName()=='Anonymous User'">
<dtml-raise type="Unauthorized">
Logout!!
</dtml-raise>
</dtml-unless>
You are now logged out!
Not very elegant (you have to enter one false login/pw combination
for the unless to work), but perhaps someone else has a better idea.
This may depend on why you want to log out - for just reaching
Anonymous "status" this seems the right thing.
Otherwise introducing a new kind of role might help "logout_user",
so you could test for that.
cheers,
oliver
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
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 )