[Zope] Authentication - login/logout

Chris McDonough chrism@digicool.com
Mon, 06 Mar 2000 16:10:57 -0500


Wade, the best you can do with basic authentication is to do something
like:

<dtml-raise Unauthorized>
 You are logged out.
</dtml-raise>


However, if the clicks cancel on the login box that pops up (there's no
way to prevent it from popping up), he or she will still be logged in.

Use cookie-based authentication if this is a constraint.

You can use the environment variable Z_REALM to change "Zope" to
something else in the login box text.


Wade Simmons wrote:
> 
> Does anyone know how to logout a Zope user?
> Basically I need to be able to force an authenticated user back to the
> 'Anonymous' user
> programmatically. (when someone presses a logout button, etc.)
> 
> Also, how can I change the message text in the login popup window?
> Currently it says something like, "Enter username for Zope at
> foo.bar.com:"
> I would like to be able to modify this depending on where someone is
> logging in.
> 
> Thanks - Wade
> wsimmons@ep.newtimes.com
> 
> Disclaimer: opinions expressed in this email are not necessarily mine or
> anyone else's.
> 
> _______________________________________________
> 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 )

-- 
Chris McDonough - Digital Creations, Inc.
Publishers of Zope - http://www.zope.org