title: Using the Session in WCF
body: <p>Here's what I'm trying to do to use the <code>Session</code> in my WCF application:</p>
  
  <pre><code> System.Guid guid = System.Guid.NewGuid();
   string id = guid.ToString();
   HttpContext.Current.Session[id] = "AnyThing";
  </code></pre>
  
  <p>But I'm receiving this error message:</p>
  
  <blockquote>
    <p>Object Reference not set to instance of Object.</p>
  </blockquote>
  
  <p>Is this the right approach for using the <code>Session</code> in a WCF application? Or is there another way to store data within WCF?</p>