Question

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?

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top