title: How can I use a standard ASP.NET session object within ServiceStack service implementation
body: <p>I'm just getting started with ServiceStack and, as a test case, I am looking to rework an existing service which is built using standard ASP.Net handlers. I've managed to get it all working as I want it but have certain aspects which make use of the ASP.Net Session object.</p>
  
  <p>I've tried adding IRequiresSessionState into the service interface:</p>
  
  <pre><code>public class SessionTestService : RestServiceBase&lt;SessionTest&gt;, IRequiresSessionState {
      public override object OnPost(SessionTest request) {
          // Here I want to use System.Web.HttpContext.Current.Session
      }
  }
  </code></pre>
  
  <p>The trouble is I can't seem to get it to work as the Session object is always null.</p>
  
  <p>I've done a lot of Googling and have puzzled over <a href="https://github.com/mythz/ServiceStack/blob/master/tests/ServiceStack.WebHost.IntegrationTests/Services/Secure.cs">https://github.com/mythz/ServiceStack/blob/master/tests/ServiceStack.WebHost.IntegrationTests/Services/Secure.cs</a> and similar but I can't find any example code which does this (which surprises me). Can anyone explain why the above doesn't work and advise what I need to do to get it working?</p>
  
  <p><strong>Note:</strong> Ultimately I'll probably look to replace this with Redis or will try to remove any serverside session requirement, but I figured that I'd use the ASP.Net implementation for the time being, to get things working and to avoid reworking it more than is necessary at this point.</p>