I am making jquery ajax calls to server after each 10 seconds from a page. Now when a user makes normal request (no ajax call) to server (if he stays idle for 2 minutes) I want the user to become log out. I have already made a form authentication cookie with timeout 2 minutes but the issue is that automatic jquery ajax calls(after each 10 seconds) are not making the user unauthenticated. How can I handle this case.
Share
Clear the interval and remove the authentication cookie after 2 minutes :
I’m guessing that on the server side there is a check for the authentication cookie – if its not found then the user is forced to re-authenticate.