On Wed, Feb 6, 2013 at 1:33 PM, Wyatt Baldwin
<[email protected]>wrote:

> I'm in the process of migrating a Pylons app to Pyramid. It uses a
> SQLAlchemy/MySQL back end for sessions (the session DB is separate from the
> main app DB).
>
> I swapped out Beaker's SessionMiddleware with a pyramid_beaker session
> factory. This seems like a straightforward transformation, and under the
> hood pyramid_beaker looks quite similar to SessionMiddleware (i.e., the way
> the session object is initialized per request is very similar).
>

Good to know that database sessions work. I've never done them because the
Beaker documentation was so incomplete on what the settings should be and I
didn't want to guess. Can you post your settings?

I use file-based sessions because they're the default although they're kind
of cumbersome. Except one case where I used memory sessions because it was
a desktop app that wasn't supposed to write to the disk. When I asked Ben
about which session backend to use at one point, he said everybody's moving
to Memcached. I never did because the data disappears if you reboot the
server and users get annoyed if their session gets dropped in the middle or
they have to log in again, especially if they've just filled out a long
form.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to