Hi all, If i'm logged in as testuser and want to log in with a different user name, whats the right way of doing it? this is on zope 2.7 thanks paul
On 9/27/05, paul.hendrick@gmail.com <paul.hendrick@gmail.com> wrote:
Hi all, If i'm logged in as testuser and want to log in with a different user name, whats the right way of doing it? this is on zope 2.7
You select "Log out of ZMI". :-) Unless you use CMF. Or some special user folder. Oh, and it won't work on IE. It refuses to log out.
On 9/27/05, paul.hendrick@gmail.com <paul.hendrick@gmail.com> wrote:
Hi all, If i'm logged in as testuser and want to log in with a different user name, whats the right way of doing it? this is on zope 2.7
thanks paul
How did you log in? Through an HTML form, with cookies? Through the HTTP Basic Auth pop-up window? Rob
paul.hendrick@gmail.com wrote at 2005-9-27 18:11 +0100:
If i'm logged in as testuser and want to log in with a different user name, whats the right way of doing it? this is on zope 2.7
When you are using HTTP authentication, then logging out is difficult (and nasty). The following DTML method helps you to log out: <dtml-var standard_html_header> <h2><dtml-var title_or_id> <dtml-var document_title></h2> <p> <dtml-if "AUTHENTICATED_USER.getUserName() != 'Anonymous User'"> <dtml-raise Unauthorized></dtml-raise> </dtml-if> You have been logged out. </p> <dtml-var standard_html_footer> When you call it via an URL, you will get a login dialog. Put in any name and a *WRONG* password. When you finish the dialog, you should see "You have been logged out". After that, you can login again in the normal way. Note, that in case you use correct login information (a right password), then the login dialog will come again... -- Dieter
I don't if it's been said or if it applies to your situation but try looking at CookieCrumbler which let's you use cookies instead of Basic Authentication for the Zope login. When you do this you have a much greater control over the cookies (any Python Script will do) and you can do stuff such expire cookies to set cookies to not expire when someone logs in until a few days into the future. 2005/9/27, paul.hendrick@gmail.com <paul.hendrick@gmail.com>:
Hi all, If i'm logged in as testuser and want to log in with a different user name, whats the right way of doing it? this is on zope 2.7
thanks paul
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
participants (5)
-
Dieter Maurer -
Lennart Regebro -
paul.hendrick@gmail.com -
Peter Bengtsson -
Robert Boyd