title: Redis session expired after 20 minutes, why?
body: <p>I use redis cache (azure servers)</p>
  
  <pre><code>System.Web.HttpContext.Current.Session["UserID"] = user.Id;
  </code></pre>
  
  <p>After 20 minutes <code>System.Web.HttpContext.Current.Session["UserID"]</code> returns <code>null</code>.</p>
  
  <p>I use <code>Microsoft.Web.RedisSessionStateProvider</code> for my custom sesson.</p>
  
  <p>What is the best way to slide the session when I call <code>System.Web.HttpContext.Current.Session["UserID"]</code></p>
  
  <pre><code>&lt;sessionState mode="Custom" customProvider="MySessionStateStore"&gt;
    &lt;providers&gt;
      &lt;add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="SERVER" accessKey="KEY" ssl="true" throwOnError="false" /&gt;
    &lt;/providers&gt;
  &lt;/sessionState&gt;
  </code></pre>