문제

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?

도움이 되었습니까?

해결책

Maybe you forgot to setup pyramid_beaker properly during application startup as mentioned here

If you want more control, follow this way

Remove the parameter below from your settings. It is an option for pyramid.session.UnencryptedCookieSessionFactoryConfig. You switched to using pyramid_beaker.

session.cookie_max_age = 120
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top