On Sep 4, 2008, at 1:02 PM, Matt Feifarek wrote:
I'm having trouble getting sessions to persist across a server up/ down.Even when I use: beaker.session.type = fileThe session data itself (verified by the pickle files on the disk in %(here)s/data) is there past the paster restart, but it gets disconnected from the session itself (the user, that is).
Setting a specific expiretime should do it, unfortunately this value needs to be a timedelta or datetime value, so in your projects lib/ environment.py, after the config.init function was called, add:
from datetime import timedelta config['beaker.session.cookie_expires'] = timedelta(minutes=20) And that should do the trick. Cheers, Ben
smime.p7s
Description: S/MIME cryptographic signature
