<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Dieter Maurer wrote:
<blockquote cite="mid17341.31483.805076.530198@gargle.gargle.HOWL"
type="cite">
<pre wrap="">Infor Gates wrote at 2006-1-4 20:14 -0800:
</pre>
<blockquote type="cite">
<pre wrap="">I have a trying time using Cookie Crumbler 1.2 with Zope2.8.4 (windows version).
I could NOT figure out how to log out a user. I have simplified to the orginal logged_out form to this:
</pre>
</blockquote>
<pre wrap=""><!---->
The "Cookie Crumber" has a "logout" method.
You should use it for the logout (and not try to emulate it yourself).
You can activate it via an URL of the form:
url_to_your_cookie_crumbler/logout
It will redirect to the "logout_page" (you can configure for
your "Cookie Crumbler".
</pre>
</blockquote>
Infor,<br>
<br>
you can also do it with a python script like so: (I make a python
script into index_html and use it as a request clearing house):<br>
<br>
if request.get('action_type') == 'LOGOUT':<br>
context.cookie_authentication.logout()<br>
<br>
I guess you can translate this into DTML with something like:<br>
<br>
<dtml-call "cookie_authentication.logout()"><br>
<br>
David<br>
<br>
<br>
<br>
<br>
</body>
</html>