Re: Good storage/system for sessions

David Glick <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>

On Jan 5, 2011, at 12:04 AM, "[email protected]" <[email protected]> wrote:

> Hi.
>
> We've experienced some problems with the Transcience/SESSION system, where
> KeyErrors can pop up for unknown reasons.
>
> Therefore, I was thinking of writing/using a custom session system, which
> doesn't do anything "magical", just stores it into some kind of database.
>
> It would have to support multiple ZEO clients, and I'm thinking it should
> also "respect" the transaction machinery, so that if something fails, the
> changes are rolled back.
>
> I've thought of different approaches, but right now, the best approach seems
> to be a separate database file, in FileStorage, BSDDB or some such variant,
> mounted at the point /session for example.
>
> Then have 3 methods/functions which set, get and delete entries in the
> storage as necessary.  Every user gets a unique cookie and corresponding
> place in the database.
>
> What's the recommended way to handle up to many, many small objects with
> frequent writes?
>
> Am I making unecessary work for me here, or could such a system be useful?
>
> Has something like it been made before?  Is it better to test and fix
> the Transcience/SESSION system?

Take a look at collective.beaker
----------
David Glick
 Web Developer
 [email protected]
 206.286.1235x32

Groundwire: You Are Connected
 http://groundwire.org

Online tools and strategies for the environmental movement.  Sign up for Groundwire News!
 http://groundwire.org/email-capture

Check out our 2010 Website Benchmarks Report. How do you stack up?
 http://groundwire.org/resources/articles/2010-website-benchmarks-report

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.