Cookies: Making them last longer than a session

Cookies: Making them last longer than a session
This will enable users to remain logged in beyond one browser session. If a Plone instance is being used as an intranet, repetitive logging in is a barrier to ease-of-use. This can also apply to internet sites. This can be circumvented by allowing the user to remain logged in after they close their browser.
Setting cookie expiration length:
  • Call up the ZMI via http://your_portal_url/manage
  • Go to acl_users
  • Choose session
  • Alter "Cookie lifetime" to the number of days you wish to let your users stay logged in for.
  • Alter the "Cookie validity timeout" to either "0" (no timeout) or the number of seconds equivalent to the "Cookie lifetime" days.
That's it. Easy when you know how.
Note that the plone.session settings will only affect cookies set for users in the Plone acl_users folder, not any users (e.g. the admin user) in the Zope root acl_users folder.

设置