<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>We use a 'home-grown' cookie-based authentication
process, and when we want to log the user out we over-write the cookie with
invalid data and send the user to a 'so long and thanks for all the fish'
page.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jonathan</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=D.Sinang@spi-bpo.com href="mailto:D.Sinang@spi-bpo.com">Sinang,
Danny</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope@zope.org
href="mailto:zope@zope.org">zope@zope.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, October 03, 2006 8:24
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Zope] Programmatically logging
out a user</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial size=2>How do I
programmatically log out a user from Zope ?</FONT></SPAN></DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial size=2>I've asked this
question before, but was told to :</FONT></SPAN></DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial size=2>1. Redirect the
user to a page that always raises Unauthenticated.
See<BR>manage_zmi_logout.</FONT><BR></SPAN></DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial size=2>2. <FONT
size=3><FONT size=2>from AccessControl.SecurityManagement import
noSecurityManager<BR>noSecurityManager()</FONT><BR></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial size=2>Are there any
other ways out there ?</FONT></SPAN></DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial size=2><FONT size=3><FONT
size=2></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial size=2><FONT size=3><FONT
size=2>Regards,<BR>Danny</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial size=2><FONT size=3><FONT
size=2></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=668002112-03102006><FONT face=Arial size=2><FONT
size=3> </DIV></FONT></FONT></SPAN>
<P>
<HR>
<P></P>_______________________________________________<BR>Zope maillist
-
Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**
No cross posts or HTML encoding! **<BR>(Related lists -
<BR> http://mail.zope.org/mailman/listinfo/zope-announce<BR> http://mail.zope.org/mailman/listinfo/zope-dev
)<BR></BLOCKQUOTE></BODY></HTML>