title: Servicestack session lost AFTER javascript API call-NOT A BUG
body: <p>I have my servicestack authentication and session accessible nicely in ASP.NET MVC, I can navigate between pages fine and retrieve the session with no issues and stay logged in on each page.</p>
  
  <p>I can refresh pages, no issue.</p>
  
  <p>However, as soon as I make an API call to a ServiceStack service, it causes a problem:</p>
  
  <p>The service does NOT have [Authenticate] attribute on, and does not neccessarily require authentication, I can get the session during the first invocation of the service, however once the service returns and I navigate to another page or even refresh the same page I am no longer authenticated and the session is lost. Similarly if I call the service endpoint a second time the session data is no longer available.</p>
  
  <p><a href="https://github.com/darrenshrwd/InvestigateSSAuth" rel="nofollow">https://github.com/darrenshrwd/InvestigateSSAuth</a></p>
  
  <p>...<strong>NOT A BUG</strong>...I had left the following lines in, originally copied from my previous project:</p>
  
  <pre><code>    //Add a response filter (https://github.com/ServiceStack/ServiceStack/wiki/Request-and-response-filters) ...
      //...to CLEAR the user session after the service is executed as this is a Stateless service.
      GlobalResponseFilters.Add((req, res, dto) =&gt; req.RemoveSession());
  </code></pre>