I'm trying to setup a login/logout page via javascript for a single page application (pouchdb).
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);
the only parameters I can retrieve are:
Server: CouchDB/1.5.0 (Erlang OTP/R16B01) Content-Type: text/plain; charset=utf-8 Cache-Control: must-revalidate
Anyone succeeded to retrieve this session cookie and use it with javascript ? thanks, jl