As some of you probably know, Facebook uses a โsystemโ where a pop-up is displayed when a user session is lost due to inactivity or closing a remote session. I already saw and read this Node.js question , but found nothing.
I am working on a Canadian computer business, our main product is CRM, and everything is encoded using classic ASP.
I know.
The entire web application works fine, and since we host the site on our servers, you can open ports and use sockets if necessary.
Here is the main question: is there a way (using a javascript library or jQuery plugin, perhaps?) To fire the event on the client side when the session expires , or is it simply lost due to a server reset, for example?
Of course, it would be better to use a different solution than send an AJAX request every second to check if a user session exists. If this can help, at the same time a maximum of about 3,500 users are connected, and our servers can easily handle more traffic. Servers run on Windows Server 2008 along with IIS 7.
Unfortunately, I cannot provide any code blocks or screenshots for this question, since there is nothing to debug.
One idea would be to use an AJAX request for a file that returns nothing and hangs there. If the session is lost (inactivity or server reset), the AJAX request raises an error and the error function will start. Will this be something to consider?
Or otherwise, any other suggestions?