[Zope] Zope Logout
Keith Alperin
KAlperin@ignitesports.com
Wed, 30 Jan 2002 22:37:46 -0600
This is a multi-part message in MIME format.
------_=_NextPart_001_01C1AA11.080B8708
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Todd, thank you for your reply. Unfortunately, my host is running Zope
2.3 on top of python 1.5.2 and thus will not support ExUserFolder.
Cookie User Folder may work, but I would at least like to hear from
others who have attempted to get around this problem. I'm particularly
curious to know why the try/finaly scheme didn't work.=20
I did notice something strange. When i navigate to my dtml document
that has the logout code, i am presented with the http authentication
dialog. However, providing my credentials still yields the Unauthorized
error message.
Has anyone been able to log out of a session using the standard user
folder without displaying the error message??? =20
Thanks so much,
Keith
-----Original Message-----
From: Todd Graham
Sent: Wed 1/30/2002 8:27 PM
To: Keith Alperin; zope@zope.org
Cc:=09
Subject: Re: [Zope] Zope Logout
Take a look on Zope.org for Cookie User Folder, or ExUserFolder these
products give you more flexibility when handling authentication.
Hope this helps,
T
----- Original Message -----
From: Keith Alperin <KAlperin@ignitesports.com>
To: <zope@zope.org>
Sent: Wednesday, January 30, 2002 12:33 PM
Subject: [Zope] Zope Logout
Greetings Zopistas!
I'm currently working on a site where I have one requirement left to
fulfill before I can release. I need to be able to allow users to
logout and sign in as someone else. After doing some research I came up
with some DTML that looks like this (I don't have the code in front of
me, but it's pretty similar):
<dtml-raise Unauthorized>
You are not authorized
</dtml-raise>
This does log the person out, but also generates a pretty ugly error
message. If possible, I'd like to use a redirect. However, this still
raised the Unauthorized error:
<dtml-raise Unauthorized>
<dtml-var expr=3D"RESPONSE.redirect('/')">
</dtml-raise>
Finally, I tried a try/finally block which still errored out:
<dtml-try>
<dtml-raise Unauthorized>
You are not authorized
</dtml-raise>
<dtml-finally>
<dtml-var expr=3D"RESPONSE.redirect('/')">
</dtml-try>
Any advice that anyone can provide would be MOST appreciated.
Thanks so much!
Keith R. Alperin
_______________________________________________
Zope maillist - Zope@zope.org
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 )
------_=_NextPart_001_01C1AA11.080B8708
Content-Type: application/ms-tnef;
name="winmail.dat"
Content-Transfer-Encoding: base64
eJ8+IjAEAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEEgAEAFwAAAFJFOiBbWm9wZV0gWm9wZSBM
b2dvdXQAnwcBBYADAA4AAADSBwEAHgAWACUALgADAGQBASCAAwAOAAAA0gcBAB4AFgAlAC8AAwBl
AQEJgAEAIQAAAEJCREY4OEFCRDc3OTFCNDlCMDMyQzRGMDVBMTdBRDI3AFwHAQOQBgAsDQAANgAA
AAMANgAAAAAAQAA5AAiHCwgRqsEBHgA9AAEAAAAFAAAAUkU6IAAAAAACAUcAAQAAACoAAABjPVVT
O2E9IDtwPUlTTTtsPVVUQUgtMDIwMTMxMDQzNzQ2Wi0yNTg2NQAAAB4ASQABAAAAFwAAAFJlOiBb
Wm9wZV0gWm9wZSBMb2dvdXQAAEAATgCA9bPE/qnBAR4AWgABAAAADAAAAFRvZGQgR3JhaGFtAAIB
WwABAAAAPwAAAAAAAACBKx+kvqMQGZ1uAN0BD1QCAAAAAFRvZGQgR3JhaGFtAFNNVFAAdGdyYWhh
bUBzcGVha2Vhc3kubmV0AAACAVwAAQAAABsAAABTTVRQOlRHUkFIQU1AU1BFQUtFQVNZLk5FVAAA
HgBdAAEAAAAMAAAAVG9kZCBHcmFoYW0AAgFeAAEAAAA/AAAAAAAAAIErH6S+oxAZnW4A3QEPVAIA
AAAAVG9kZCBHcmFoYW0AU01UUAB0Z3JhaGFtQHNwZWFrZWFzeS5uZXQAAAIBXwABAAAAGwAAAFNN
VFA6VEdSQUhBTUBTUEVBS0VBU1kuTkVUAAAeAGYAAQAAAAUAAABTTVRQAAAAA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