sessions themselves never expires in web2py. Auth does. You can change the expiration-time in the session cookie and you can change the auth.expiration time on a per user basis. Let me look more into this is and repost.
On May 12, 3:30 am, Śląski <[email protected]> wrote: > Hi, > Is it possible to configure session in some clear way? Different > than changing some hard coded values. > I just want to customize sessions for different users (for example > user A has 5 min session expiration time, use B 30 min, user C has no > session). > > The only solution I see now is to add a function, which is evaluated > on each request and manually check the session time, and after that > call session.forget(). > Is there better solution? > Something like in Django session managment: > Browser-Length Sessions vs. Persistent Sessions, set_expiry(value), > get_expiry_age(), get_expiry_date() ... > onhttp://www.djangobook.com/en/2.0/chapter14/

