how do i notify users when their sessions has timed out |
(07-28-2017, 10:45 AM)PaulD Wrote: OOoooh. That is a really good idea. Was just looking at how to do this myself and was stuck. But that is a really cool plan. Not sure how to do that in js but it is a good sounding approach. Thanks. I've never actually done this. I was just thinking as I was typing. I think you could do the looping with setInterval, like this: https://stackoverflow.com/a/1542294 Get the epoch time in javascript: https://stackoverflow.com/a/9456144/667090 Put the epoch time of session expiration in a hidden input so javascript can see it easily.... If expiration is less than X seconds, add a class or attribute to hidden input, so that the loop quits checking the time, then pop up the modal .... |
Messages In This Thread |
how do i notify users when their sessions has timed out - by java - 07-27-2017, 02:06 PM
RE: how do i notify users when their sessions has timed out - by skunkbad - 07-27-2017, 03:37 PM
RE: how do i notify users when their sessions has timed out - by PaulD - 07-28-2017, 10:45 AM
RE: how do i notify users when their sessions has timed out - by Kaosweaver - 07-28-2017, 11:37 AM
RE: how do i notify users when their sessions has timed out - by skunkbad - 07-28-2017, 01:37 PM
RE: how do i notify users when their sessions has timed out - by skunkbad - 07-28-2017, 11:39 AM
|