title: receive sessionid after login via spring security
body: <p>I am writing a small app with a spring boot rest based backend and a polymer dart based frontend.</p>
  
  <p>Currently I'm struggling to receive the session id from the login mechanism...</p>
  
  <p>Initially I planned to use the <code>HeaderHttpSessionStrategy</code> and use this to authenticate against the spring-session/redis session store to enable horizontal scaling.</p>
  
  <p>The problem is that spring security always performs a redirect after login and in dart the <code>HttpRequest</code> class (from html package) and after the redirect the header field from the initial response is of course no longer present/accessible.
  I tried to disable followRedirect for the client, but it looks like this is only available for the IO package <code>HttpRequest</code>.</p>
  
  <p>Then I tried to switch to <code>CookieHttpSessionStrategy</code> but it looks like the dart httprequest does not store received cookies in the browsers cookie backend :-/</p>
  
  <p>This should be a simple problem, but I'm a little bit lost here. This can't be that hard...</p>
  
  <p>When I use for example the intellij rest client everything works and I can extract the session id from either the cookie or the header field...</p>
  
  <p>Any ideas? :-/</p>