开发者

Simulate sessions in CouchDB?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜