title: task.factory startnew usage makes my website delog users from time to time
body: <p>This is the order of my code:</p>
  
  <p>I make multiple </p>
  
  <pre><code>task.factory.startnew(()=&gt; myFunction(myObject, httpSessionState))
  </code></pre>
  
  <p>I send the <code>System.Web.SessionState.HttpSessionState</code>  to myFunction because i dont wait for the tasks to end , so they run in background, and I can't get session inside myFunction because</p>
  
  <pre><code> System.Web.HttpContext.Current = null.
  </code></pre>
  
  <p>myFunction calls webservices and stores their result in the  <code>httpSessionState</code> object</p>
  
  <p>then I make several ajax calls to get the session values from the server, until I have all the desired values.</p>
  
  <p><strong>PROBLEM</strong>:</p>
  
  <p>I cant explain why users get de-logged from time to time. I assume the session becomes null.
  All users get delogged at the same time. All session objects probably become null</p>