I'm using Beaker also to store the logged in user id in a cookie, which is
a user id retrieved from the database. But the security is not my first
priority and I'm not very familiar with sessions as they are used in web
applications.

Basically what I do is, authenticate the user and store the authenticated
user id in a cookie.

you can look at my authentication module in:

http://code.google.com/p/stalker/

it is not a finished project, so it may not work as expected...

E.Ozgur Yilmaz
Lead Technical Director
eoyilmaz.blogspot.com



On Thu, Dec 29, 2011 at 4:10 PM, Pierre A
<[email protected]>wrote:

> I don't know exactly what you are trying to achieve, but when I see
> session and python in the same sentence, beaker comes to mind.
> I've only used it with wsgi apps, but the doc says that it works with
> stand alone applications.
> http://beaker.readthedocs.org/en/latest/index.html
>
> For authentication and authorization, you could have a look at repoze.who
> ( http://docs.repoze.org/who/2.0/ ), but it's aimed for wsgi applications.
> Perhaps you could hack it:
> http://docs.repoze.org/who/2.0/use_cases.html#api-only-use-cases
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to