10 messages in com.googlegroups.pylons-discussRe: deploying, sessions, and the cache
FromSent OnAttachments
Brian Shih29 Jul 2006 20:42 
Ben Bangert29 Jul 2006 23:27 
Brian Shih30 Jul 2006 01:40 
Ben Bangert30 Jul 2006 11:19 
Brian Shih30 Jul 2006 23:03 
Brian Shih30 Jul 2006 23:04 
Ben Bangert30 Jul 2006 23:27 
Brian Shih31 Jul 2006 12:44 
Ben Bangert31 Jul 2006 12:55 
Brian Shih31 Jul 2006 16:22 
Subject:Re: deploying, sessions, and the cache
From:Ben Bangert (be@groovie.org)
Date:07/30/2006 11:19:08 AM
List:com.googlegroups.pylons-discuss

On Jul 30, 2006, at 1:40 AM, Brian Shih wrote:

We're still on 0.8 - we plan on updating, but for the time being still need to have our sessions stick between deploys. Just keeping the app/cache/sessions folder symlinked to a static location doesn't seem to stop the app from losing the session on restart.

Any idea how Myghty does it in 0.8?

Yep, it's taking the config values from its default Config object and the ones coming in from your [app:main] section. The default option in 0.8.2 is to use in-memory sessions. To switch to disk-based sessions, add the following line to your [app:main] section: session_data_dir = %(here)s/cache/sessions

That should do the trick, and you'll see a sessions dir under your cache directory with the session files.

HTH, Ben