Yes, sorry, there's one more thing you have to do -- you have to convert the session cookie to a non-session cookie:
response.cookies[response.session_id_name]["expires"] = session.auth. expiration That will happen the next time Auth is initialized (which would happen on the next request), but it won't happen if you simply close the browser. Anthony On Thursday, June 6, 2013 5:33:37 PM UTC-4, Mark Li wrote: > > Here's the relevant part of the code I'm using. I make an ajax call to the > function below > > def ajax_login(): > email = request.vars.email > password = request.vars.password > remember_me = request.vars.remember_me > > user = auth.login_bare(email, password) > if user: > if remember_me: > session.auth.expiration = auth.settings.long_expiration > session.auth.remember = True > > > > -- --- 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/groups/opt_out.

