title: Session and security in CouchApp/CouchDB?
body: <p>I'm new to CouchApp and CouchDB and have some questions.</p>
  
  <ol>
  <li>How can I make sessions in CouchApp from my own database (not <em>_users</em>)?</li>
  <li>How would I retrieve that session?</li>
  <li>How can I  parse data from a document?</li>
  </ol>
  
  <p>I can do it with a view, but when someone calls my view url and gets the id, he can get all data like passwords (I'm trying to use my own database to store login information).</p>
  
  <p>In my database I have a document like this:</p>
  
  <pre><code>{  
     "_id": "...",  
     "_rev": "...",  
     "XDocType": "user",  
     "name": "Administrator",  
     "password": "1234",  
     "username": "admin"
  }
  </code></pre>
  
  <p>I want to make a simple login/register/logout with sessions, not cookies.</p>