Simulate sessions in CouchDB?

I allow CouchDB to serve the Sproutcore application, so there is no backend.

When a user logs in, I want him to be remembered, so he does not need to log in again.

With regular server servers, I used sessions for this.

Is there a way to simulate sessions in CouchDB?

If not, how do I make the application remember it?

+3
source share
1 answer

You can use cookies, basic HTTP authentication, and OAuth for verification (and other third-party methods) to keep users in the session. There is also an API call to retrieve the current session user. ( _session) Refer to this page on the Wiki.

+4
source

Source: https://habr.com/ru/post/1791601/


All Articles