Are you talking about the Auth login expiration? The expiration is the elapsed time since the last visit, not since the original login, so on any given request, the remaining time is approximately equal to the full login expiration time (it is approximate because the updated last_visit time isn't written to the session on every request, but only if the time since the previous visit exceeds 1/10 of the login expiration time).
In any case, the time of the last visit is stored in auth.last_visit (keeping in mind, as noted above, that this is approximate, as it is not updated on every request), and the login expiration (in seconds) is stored in auth.expiration (it will be set to the value of auth.settings.expiration or auth.settings.long_expiration, depending on whether you have enabled the "Remember me" option and whether the user has selected the option). Anthony On Saturday, July 25, 2015 at 3:10:22 PM UTC-4, José Eloy wrote: > > Hello! > > What's the best way to show the user the remaining time of the session? By > default the session time will be 1 hour. > > Thanks in advanced. > > José Eloy. > > -- 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.

