Ok, thanks
Example:
How do I allow a user to stay logged in to my site for as long as
possible? Or have the site remeber the user? without allowing the user
log in again and again

On May 2, 1:56 am, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
> it does.
>
> if 'counter' in request.cookies:
>   # retrieve cookie
>   counter = request.cookies['counter'].value +1
> else:
>   counter=1
>
> # set cookie
> response.cookies['counter'] = counter
>
> request.cookies[name] is a Morsel 
> Objecthttp://docs.python.org/library/cookie.html
>
> Massimo
>
> On May 1, 7:36 pm, Pystar <aitoehi...@gmail.com> wrote:
>
>
>
>
>
>
>
> > In dealing with authentication and session do I need to deal with raw
> > cookies? or does web2py handle that for me?

Reply via email to