I'm new to CouchApp and CouchDB and have some questions.
- How can I make sessions in CouchApp from my own database (not _users)?
- How would I retrieve that session?
- How can I parse data from a document?
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).
In my database I have a document like this:
{
"_id": "...",
"_rev": "...",
"XDocType": "user",
"name": "Administrator",
"password": "1234",
"username": "admin"
}
I want to make a simple login/register/logout with sessions, not cookies.