Re: Question about session storage and persistence

2008-09-09 Thread Matt Feifarek
On Tue, Sep 9, 2008 at 11:27 AM, Matt Feifarek <[EMAIL PROTECTED]>wrote: > from datetime import timedelta >> config['beaker.session.cookie_expires'] = timedelta(minutes=20) >> >> And that should do the trick. >> > > I tried this, but it basically invalidates all session activity. > I tried it aga

Re: Question about session storage and persistence

2008-09-09 Thread Jonathan Vanasco
this is odd as i've had the exact opposite problem -- needing to expire sessions on a restart (changing classdefs cause beaker to raise an error. i'd still like to see an option on config that a bad session can just create a new session ) the only lines to my session setup are the defaults beak

Re: Question about session storage and persistence

2008-09-09 Thread Matt Feifarek
On Thu, Sep 4, 2008 at 7:36 PM, Ben Bangert <[EMAIL PROTECTED]> wrote: > 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 imp

Re: Question about session storage and persistence

2008-09-04 Thread Ben Bangert
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 = file The session data itself (verified by the pickle files on the disk in %(here)s/data) is there past the paster restart, but it

Question about session storage and persistence

2008-09-04 Thread Matt Feifarek
I'm having trouble getting sessions to persist across a server up/down. Even when I use: beaker.session.type = file The 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, th