Hi Yeah I am using beaker on app engine as well with bfg, real easy to setup and it works well. I am using memcache on app engine as the store at the moment as I don't mind if sessions disappear if not used for a little while, but it would be easy to make writes to the session persist in the datastore.
T On Fri, Feb 19, 2010 at 8:51 AM, Fernando Correa Neto <fcd...@gmail.com> wrote: > Hey there, > > Using beaker is no biggie. > In your .ini you need something like: > > [filter:beaker] > use = egg:Beaker#beaker_session > beaker.session.key = yourapp.session > beaker.session.secret = supersecret > > [pipeline:main] > pipeline = egg:repoze.zodbconn#closer > egg:repoze.tm2#tm > beaker > app > > And then you'll have 'yourapp.session' in your environment. i.e.: > request.environ['yourapp.session'] or > request.environ['beaker.session']. > > Cheers, > Fernando > > On Thu, Feb 18, 2010 at 10:10 PM, georgehu <geo...@gmail.com> wrote: >> I'm trying to implement a simple session management like the Amazon >> site, you can throw your order item into your shopping cart even without >> a login, and Amazon can remember your ordered items for many days. I'm >> using mysql and sqlalchemy, according to the document, the Beaker is >> suggested in this case. But I would like to see an example code snippet >> or tutorial on how to do it. >> >> Thanks >> >> George Hu >> _______________________________________________ >> Repoze-dev mailing list >> Repoze-dev@lists.repoze.org >> http://lists.repoze.org/listinfo/repoze-dev >> > _______________________________________________ > Repoze-dev mailing list > Repoze-dev@lists.repoze.org > http://lists.repoze.org/listinfo/repoze-dev > _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev