1

I am currently developing application in pyramid framework. Following are my settings in development.ini

session.type = file
session.data_dir = data/sessions/data
session.lock_dir = data/sessions/lock
session.key = mykey
session.secret = mysecret
session.cookie_on_exception = true
session.cookie_expires = true
session.cookie_max_age = 120
session.timeout = 120

my problem is session never expired. What am I missing?

4

1 回答 1

2

也许您忘记在应用程序启动期间正确设置pyramid_beaker,如此处所述

如果您想要更多控制权,请按照这种方式

从您的设置中删除以下参数。它是pyramid.session.UnencryptedCookieSessionFactoryConfig. 您切换到使用 pyramid_beaker。

session.cookie_max_age = 120
于 2013-10-21T14:27:42.360 回答