title: How to check how many seconds are left for the current session?
body: <p><code>Session.Timeout</code> only returns the static value in <code>Web.Config</code>. But I want to get a value of how many seconds are left till the current session expires. What should I do?</p>
  
  <hr>
  
  <p>I tried to retrieve the <code>Session.Timeout</code> from JavaScript.</p>
  
  <pre><code>setInterval('checkSession()', 100);
  </code></pre>
  
  <p>And the <code>checkSession()</code> is:</p>
  
  <pre><code>function checkSession() {
      console.log('Timeout: &lt;%= Session.Timeout %&gt;');
  }
  </code></pre>
  
  <p>The page spit out the current <code>Session.Timeout</code> value for several minutes and it only proves that <code>Session.Timeout</code> is the static value set in my <code>Web.Config</code>, not a dynamic value which shows me how many minutes are left.</p>