Plone技术论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 135|回复: 0

Cookies: Making them last longer than a session [复制链接]

Rank: 9Rank: 9Rank: 9

发表于 2012-1-12 21:42:10 |显示全部楼层
      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.

招聘Python/Plone开发人员

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

Archiver|Plone技术论坛 ( 湘ICP备07003419 )

GMT+8, 2012-5-20 06:07 , Processed in 0.066339 second(s), 8 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部