I would put the timeout value directly in the JS, as in your second
example. To redirect, just set the value of location:
location = [logout url];
Anthony
On Tuesday, April 25, 2017 at 9:57:31 AM UTC-4, A3 wrote:
>
>
> Anthony your right, I was just looking in the wrong direction.
>
> What
Anthony your right, I was just looking in the wrong direction.
What about something like:
def index():
timeout = auth.settings.expiration
return dict( timeout=timeout)
or put the variable timeout in the layout directly to simplify.
And in the layout
var timeout = {{=timeout}};
On Monday, April 24, 2017 at 12:49:56 PM UTC-7, Anthony wrote:
>
> On Monday, April 24, 2017 at 6:52:16 AM UTC-4, A3 wrote:
>>
>> Thanks, I thought there was a standard solution.
>>
>
> This is not a very common pattern except on highly secure websites (e.g.,
> banking).
>
Indeed, a common use
On Monday, April 24, 2017 at 6:52:16 AM UTC-4, A3 wrote:
>
> Thanks, I thought there was a standard solution.
>
This is not a very common pattern except on highly secure websites (e.g.,
banking).
> Unfortunately it doesn't work:
> I hoped it worked but it seems that the ajax call keeps the
Thanks, I thought there was a standard solution.
I tried this:
add this scrip to layout:
var time = new Date().getTime();
$(document.body).bind("mousemove keypress", function(e) {
time = new Date().getTime();
});
function refresh() {
if(new
You could include some JS in the layout that has the desired time to
expiration in a JS variable and automatically does a client-side redirect
to the logout URL after the expiration time.
Anthony
On Friday, April 21, 2017 at 5:04:11 AM UTC-4, A3 wrote:
>
> Using auth and
6 matches
Mail list logo