title: Why Session objects are not removed after Timeout period in Asp.Net?
body: <h2>Why Session objects are not removed after Timeout period?</h2>
  <p>I am using Asp.Net 4.0 and Session state is configured as shown below.</p>
  <pre><code>&lt;sessionState mode=&quot;SQLServer&quot; cookieless=&quot;false&quot; timeout=&quot;5&quot;
                    allowCustomSqlDatabase=&quot;true&quot; 
                    sqlConnectionString=&quot;data source=.\SqlExpress;initial catalog=App_SessionState;user id=sa;password=xxxxxxxx&quot;/&gt;
  </code></pre>
  <p>If I have not activity in browser for about 10 mins, shouldn't the Session object be removed. But after 10 mins I can still access the Session variable. Am I missing something here?</p>
  <p><strong>EDIT:</strong></p>
  <p>If I access a session variable after 10 mins as shown below shouldn't I get <strong>NULL</strong></p>
  <pre><code>  var myObj = Session[&quot;MyKey&quot;] as MyClass;
  </code></pre>
  <p>mObj is not NULL after 10 mins.</p>