Hello Everyone, how does the DTML look like when I want to log out? I basically have everythin written of authenticating a user using acl_users (UserDB). Now I want to log this user out. How can I do this? Regards, Stephan -- Stephan Richter iXL - Software Designer and Engineer CBU - Physics, Computer Science and Chemistry Student
Try something like this: <!--#var standard_html_header--> <dtml-call "acl_users.logout(REQUEST=REQUEST)"> <dtml-call "RESPONSE.redirect('index_html')"> <!--#var standard_html_footer--> Works for me HTH Phil phil.harris@zope.co.uk |>-----Original Message----- |>From: zope-dev-admin@zope.org [mailto:zope-dev-admin@zope.org]On Behalf |>Of Stephan Richter |>Sent: Monday, January 24, 2000 11:47 AM |>To: zope-dev@zope.org |>Subject: [Zope-dev] Logout usig UserDB |> |> |>Hello Everyone, |> |>how does the DTML look like when I want to log out? |> |>I basically have everythin written of authenticating a user using |>acl_users |>(UserDB). Now I want to log this user out. How can I do this? |> |>Regards, |>Stephan |>-- |>Stephan Richter |>iXL - Software Designer and Engineer |>CBU - Physics, Computer Science and Chemistry Student |> |>_______________________________________________ |>Zope-Dev maillist - Zope-Dev@zope.org |>http://lists.zope.org/mailman/listinfo/zope-dev |>** No cross posts or HTML encoding! ** |>(Related lists - |> http://lists.zope.org/mailman/listinfo/zope-announce |> http://lists.zope.org/mailman/listinfo/zope ) |>
Phil Harris wrote:
Try something like this:
<!--#var standard_html_header--> <dtml-call "acl_users.logout(REQUEST=REQUEST)"> <dtml-call "RESPONSE.redirect('index_html')"> <!--#var standard_html_footer-->
Works for me
I suspect it works only for cookie-based auth, as with the default authentication the browser automatically reauthenticates ;( ----------- Hannu
On Mon, Jan 24, 2000 at 05:47:20AM -0600, Stephan Richter wrote:
Hello Everyone,
Hello
how does the DTML look like when I want to log out?
IIRC: <dtml-call "acl_users.logout(REQUEST)"> or <dtml-var "acl_users.logout(REQUEST)"> (in which case the docLogout document from acl_users is included).
I basically have everythin written of authenticating a user using acl_users (UserDB). Now I want to log this user out. How can I do this?
-Petru
participants (4)
-
Hannu Krosing -
Petru Paler -
Phil Harris -
Stephan Richter