Skip to content

Lawtec

Sections
Personal tools
You are here: Home Members antonh's Home Articles May2003 Keeping Users Logged In to the CMF
Navigation
Log in


Forgot your password?
Licence
Creative Commons License

This work is licensed under a Creative Commons License.
Credits
 
Document Actions

Keeping Users Logged In to the CMF

by antonh last modified 07-Sep-06 11:48 AM

Yes, it's potentially dangerous, but I really like the way "perlmonks.org":http://perlmonks.org/ lets you stay logged in from day-to-day. I'm using Zope on an Intranet site, so I wanted to set this for a CMF Site. Instructions follow.

I found the instructions here, but I'll include the instructions below.

How to do it:

  • In the control skins folder, select the setAuthCookie PythonScript.
  • Customize this script (e.g., to your custom skin folder).
  • Edit the script to include the correct expiration, e.g.:
           resp.setCookie( cookie_name, cookie_value, path='/'
                         , expires='Tue, 31-Dec-2099' ) # or whatever
    
 


This site conforms to the following standards: