title: Session Timer in asp.net
body: <p>I have an asp.net web application where the sessionstate mode is "InProc". For Inproc, by default the session expiry is 20minutes. I would like to display a session expiry countdown popup for one minute before the session expires. But i cant find a property that says how many mimutes has goneby. How to know if it is the 19th minute.
                 Right now i am doing like below:  </p>
  
  <pre><code>if (Context.Session != null)// Check whether the session is null
               { 
                if (Session.IsNewSession)// If the session is null, check whether the session is new
                 {
                 Response.Redirect("../SessionTimeout.aspx");//Redirect to time out page
                 }
               }
  </code></pre>