开发者

Simulate sessions in CouchDB?

开发者 https://www.devze.com 2023-02-10 05:17 出处:网络
I let CouchDB serve my Sproutcore application so there is no backend. When the user logs in I want him to be remembered so he doesn\'t hav开发者_StackOverflow中文版e to log in again.

I let CouchDB serve my Sproutcore application so there is no backend.

When the user logs in I want him to be remembered so he doesn't hav开发者_StackOverflow中文版e to log in again.

With regular backend servers I used sessions for this.

Is there a way to simulate sessions in CouchDB?

If not, how do I make the application to remember him?


You can use cookies, basic HTTP auth and OAuth to validate (and other 3rd party methods) to keep users in a session. There is also an API call to retrieve the current session user. (_session) Refer to this page in the Wiki.

0

精彩评论

暂无评论...
验证码 换一张
取 消