Jump to content

inform user that session is going to expire do you want continue or not


Recommended Posts

Determine how long the session timeout is on your site, and you can add some Javascript code that uses setTimeout to prompt the user a minute or two before the timeout happens. If they want to continue then you can send an ajax request to keep the session open. If you never want the session to expire, then use setInterval to send an ajax request every 10 minutes or so.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...