Copy link to clipboard
Copied
Hi. I have my cflogin set with an idletimeout of 15 minutes (900 seconds). How can I make it so that when the login timesout, a message appears on the login page saying "You have been autmatically logged out of the site after 15 minutes of inactivity."
Thanks!
Copy link to clipboard
Copied
If you are using AJAX you can make an Async call to your server to check the status using a session id. The call should be on it's own timer so that it only happens perhaps once a minute or two. Kind of like a keep alive request. The service you call could be a simple cfc set to remote that simply verifies if the session is still valid or if the user is still logged in. If the session has ended do one thing and if not do another (noting most likely).
-Joe