title: Impossible to retrieve AuthSession cookie Couchdb via javascript
body: <p>I'm trying to setup a login/logout page via javascript for a single page application (pouchdb).</p>
  
  <p>retrieving and sending authsession cookie via curl works fine as described in the documentation, however when I try to reproduce it in javascript,
   var contType = AjaxRequest.getAllResponseHeaders();
   alert(contType);</p>
  
  <p>the only parameters I can retrieve are:</p>
  
  <p>Server: CouchDB/1.5.0 (Erlang OTP/R16B01)
  Content-Type: text/plain; charset=utf-8
  Cache-Control: must-revalidate</p>
  
  <p>Anyone succeeded to retrieve this session cookie and use it with javascript ?
  thanks,
  jl</p>