title: Using ASP.NET session in WCF = Session lost every call
body: <p>I'm trying to do a WCF webservice to post some data to clients. Clients has to authenticate before accessing data, so I've made a method to authenticate, method which sets some session variable.
  When I try to access this sessions variables in another method, they're always NULL (I've tried with WCF test client and a little Winforms test client).</p>
  
  <p>I've already set <strong>aspNetCompatibilityEnabled="true"</strong>  my web.config and add attribute to my Service class <strong>[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]</strong>.</p>
  
  <p>this test :</p>
  
  <pre><code>if (HttpContext.Current.Session[CONST_SESSION_AUTHENTICATE] != null &amp;&amp;        (bool)HttpContext.Current.Session[CONST_SESSION_AUTHENTICATE] == true)
  </code></pre>
  
  <p>always refers to null session variable ...</p>
  
  <p>What did I miss ?</p>
  
  <p>Thanks</p>