pyramid_beaker会话在30分钟后不会终止

时间:2015-12-23 18:23:04

标签: pyramid beaker

我安装了python_beaker,将其添加到include:

session_factory = session_factory_from_settings(settings)
config = Configurator(settings=settings, session_factory=session_factory)
config.include('pyramid_beaker')

将这些设置添加到development.ini中:

session.type = file
session.data_dir = /tmp/sessions/data
session.lock_dir = /tmp/sessions/lock
session.key = key
session.secret = secret
session.cookie_on_exception = true

但会议永远不会结束。我做错了什么?

0 个答案:

没有答案