I don't know if there is an example posted yet but you could imitate
this code somehow:
http://www.web2py.com/examples/static/epydoc/web2py.gluon.tools-pysrc.html#Auth

Based on user login events you could use a very long time limit to
conserve the session

(Line 1021)
response.cookies[response.session_id_name]["expires"] =
auth.expiration

On 16 sep, 18:51, Pystar <[email protected]> wrote:
> I would really like to know if it is possible for a user to have an
> infinite login session? i,e the user is never logged out unless he
> specifically wants to do so. And how can this be implemented?
> thanks

Reply via email to