I want my page to show an alert when session is expired. I have searched through stack and found MVC with JQuery: handling Session Expire
This great link explains how to retain session. But the problem is that it uses timer. In my situation it is possible that user keeps his system in sleep mode leaving the web page open. In that case the timer stops working. Pleas suggest me a way so that my code will know the session is expired even the system goes to sleep mode then wake up.