>
> As long as you are making requests the login won't expire, as the 
>> expiration is measured from the time of the last request.
>>
>  
>
> I don't know the maths web2py uses to calculate this ?
> does this mean a logged in user is  logged out only if he stays idle (make 
> no request) for the duration of auth.setting.expiration ?
>

Correct. Technically, the expiration time is not extended on every single 
request but only if the time since last visit exceeds one tenth of the 
configured expiration time (this avoids writing to the session to record 
the last visit on every single request).
 

> what happens if user loads the form (main_func) logged in and hits the 
> submit button logged out ( he is been on the phone ) ?
>

They'll have to log in again.

Anthony

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to