Jump to content

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


vikramgavli
 Share

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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...