On Oct 29, 2:41 pm, slav0nic <[EMAIL PROTECTED]> wrote:
> what modules use for session/authorization - authkit, beaker, session,
> barrel, flup?
> any examples?
> i think authkit the best, but i can find only pylons examples =\

Firstly I used flup, now I'm using Beaker.

from beaker.session import SessionMiddleware
self.session = web.ctx.environ['beaker.session']

def session_mw(app):
   return SessionMiddleware(app)

if __name__ == '__main__':
   web.run(pfade, globals(), web.reloader, session_mw)

Make sure to call session.save() before the wsgi-application finishes.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to