No, please look up login_onaccept in the book -- the last three lines 
belong there.

Anthony

On Tuesday, September 8, 2015 at 2:38:25 PM UTC-4, Robert Porter wrote:
>
> Ok, so now all I've got that's login-related in my db.py is:
>
> auth.settings.long_expiration=36000000 # seconds
> if auth.user:
> session.auth.expiration = response.session_cookie_expires = 
> auth.settings.long_expiration
> session.auth.remember_me = True
>
> Is that what you meant?  It's not throwing an error now, but I also have 
> no idea if this will actually extend the expiration.
>
> On Saturday, 5 September 2015 21:55:26 UTC-7, Robert Porter wrote:
>>
>> How can I make a login persistent.  I want you to have to clean your 
>> cookies to ever be logged out.
>>
>> Right now I have a bug where I get logged out after a pretty short time 
>> (even though I set auth.settings.expiration=36000000), so I just want a way 
>> where you absolutely cannot logout unless you clean your cookies or hit my 
>> logout button.  I want to disable the possibility, not just "extend" the 
>> expiration.
>>
>

-- 
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.

Reply via email to