[Zope] LoginManager - logging out

Chalu Kim chalu@egenius.com
Sun, 17 Dec 2000 14:30:21 -0500


This is a multi-part message in MIME format.
--------------EB5B44AD54321D2002D932FB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


No, you are right. It does not work. It is because LM's default login
method is Basic. Basic logout does not work because of Basic
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.

The remedy is to change your login method to Cookie so that
AUTHENTICATED_USER.logout() works.

Good luck.

http://lists.zope.org/pipermail/zope/2000-December/037253.html
--------------EB5B44AD54321D2002D932FB
Content-Type: text/html; charset=us-ascii;
 name="037253.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="037253.html"
Content-Base: "http://lists.zope.org/pipermail/zope/2
	000-December/037253.html"
Content-Location: "http://lists.zope.org/pipermail/zope/2
	000-December/037253.html"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Zope] LoginManager - logging out</TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:ololo%40zeus.polsl.gliwice.pl">
   <LINK REL="Previous"  HREF="037254.html">
   <LINK REL="Next" HREF="037257.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Zope] LoginManager - logging out</H1>
    <B>Aleksander Salwa</B> 
    <A HREF="mailto:ololo%40zeus.polsl.gliwice.pl"
       TITLE="[Zope] LoginManager - logging out">ololo@zeus.polsl.gliwice.pl</A><BR>
    <I>Sun, 17 Dec 2000 14:58:43 +0100 (CET)</I>
    <P><UL>
        <LI> Previous message: <A HREF="037254.html">[Zope] Windows NT: Changing default TCP port</A></li>
        <LI> Next message: <A HREF="037257.html">[Zope] how can you tell who created an object in Zope?</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#37253">[ date ]</a>
              <a href="thread.html#37253">[ thread ]</a>
              <a href="subject.html#37253">[ subject ]</a>
              <a href="author.html#37253">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>I used this code in my &quot;logoutForm&quot; to logout user in my old setup
(LoginManager-0_8_7a1, ZPatterns-0-4-2a1 and Zope 2.2.1):
&lt;dtml-call &quot;AUTHENTICATED_USER.logout()&quot;&gt;

It doesn't work when using LoginManager-0-8-8b1 + ZPatterns-0-4-3b2 +
Zope 2.2.4.
I've found a work-around:
&lt;dtml-call &quot;acl_users.logoutUser(AUTHENTICATED_USER.getId())&quot;&gt;
It logouts user as expected.

But, can anybody tell me, why the former one doesn't work as it should ?


<A HREF="mailto:ololo@zeus.polsl.gliwice.pl">ololo@zeus.polsl.gliwice.pl</A>

/--------------------------------------\
|<i> `long long long' is too long for GCC |
</I>\--------------------------------------/



</pre>








<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI> Previous message: <A HREF="037254.html">[Zope] Windows NT: Changing default TCP port</A></li>
	<LI> Next message: <A HREF="037257.html">[Zope] how can you tell who created an object in Zope?</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#37253">[ date ]</a>
              <a href="thread.html#37253">[ thread ]</a>
              <a href="subject.html#37253">[ subject ]</a>
              <a href="author.html#37253">[ author ]</a>
         </LI>
       </UL>
</body></html>

--------------EB5B44AD54321D2002D932FB--