[web2py] Re: How to force a redirect to login page when session expires

2020-07-29 Thread mostwanted
He could have just had all this in the layout page without calling the timeout variable from a controller function like this: {{timeout = auth.settings.expiration}} var timeout = {{=timeout}}; var time = new Date().getTime(); var refreshrate = 1;

[web2py] Re: How to force a redirect to login page when session expires

2020-07-29 Thread mostwanted
The answer is here, everything i needed: https://groups.google.com/forum/#!searchin/web2py/expiration%7Csort:date/web2py/um2Ll4vmNH4/VnYX4veOAwAJ Thank you On Wednesday, July 29, 2020 at 4:15:34 PM UTC+2, villas wrote: > > This discussion >

[web2py] Re: How to force a redirect to login page when session expires

2020-07-29 Thread villas
This discussion should help On Wednesday, 29 July 2020 08:41:46 UTC+1, mostwanted wrote: > > Hi guys, is there a way to force a redirect to a login page when a session > expires to