Thanks for noticing that. Originally, it was session.auth.remember but was changed to session.auth.remember_me. I have updated the original answer as well.
Anthony On Monday, February 15, 2016 at 8:27:29 AM UTC-5, Alex wrote: > > The correct code should be > session.auth.remember_me = True > > Then the cookie for the session id will be set with expires and not as a > session cookie. Just in case anyone stumbles over this old thread and needs > to handle this manually as well... > > Alex > > On Tuesday, February 18, 2014 at 3:48:11 PM UTC+1, Anthony wrote: >> >> If you need to turn on long expiration manually, you can include the >> following code: >> >> session.auth.expiration = response.session_cookie_expires = auth. >> settings.long_expiration >> session.auth.remember = True >> >> If your code does an immediate redirect after login, then you don't need >> to set response.session_cookie_expires (it will be set by Auth on the next >> request). >> >> Anthony >> >> On Tuesday, February 18, 2014 5:21:23 AM UTC-5, Robin Manoli wrote: >>> >>> Is there a way to use the functionality of remember me when using >>> login_bare? If so, how? >>> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

