session timeout message popup before 5mins of actual session timeout?
<p>I need to show a timeout popup window 5 mins before the session timeout. So far I have got</p>

<p></p>

<pre><code>&lt;script type="text/javascript"&gt;

       function Timeout(intMilsec) {
               setTimeout("window.focus(); alert('Your session will timeout in 5
minutes')", intMilliseconds);
       }
&lt;/script&gt;
</code></pre>

<p>And in c#</p>

<pre><code> if(Session["id"] != null)
  {

      int time = (Session.Timeout - 5) * (60 * 1000);
      Img.Attributes.Add("onload", "Timeout(" +time + ");");
  }
  else
      Img.Attributes.Remove("onload");
</code></pre>

<p>The popup not showing up before 5mins and never. I need to know if I am missing any settings</p>
