Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The "Session_API" page has been changed by RobertNewson:
http://wiki.apache.org/couchdb/Session_API?action=diff&rev1=11&rev2=12

Comment:
restore information on GET /_session

  
  === Log in ===
  
- To create a session (=log in), do a
+ To acquire a session cookie, do a
  {{{
    POST /_session
  }}}
  with "name" and "password" fields. These can be sent either as JSON or the 
standard form data encoding; just be sure to set the Content-Type 
appropriately. (The latter format allows you to log in directly from a simple 
HTML form.)
+ 
+ You can see your logged-in user name and roles with 
+ {{
+   GET /_session
+ }}}
+ 
+ if you pass either your session cookie or authenticate with basic auth;
+ {{{
+    Authorization: Basic <base64-encoded-username:password>
+ }}}
  
  The username is the "name" field of a user's record in CouchDB's _users 
database.
  

Reply via email to