couchdb - View active user sessions -


is possible view list of active user sessions on couchdb server?

there doesn't seem mention of such feature in couch docs (http://docs.couchdb.org/en/2.0.0/api/server/authn.html#api-auth-session, http://docs.couchdb.org/en/2.0.0/api/index.html).

i can see nothing similar require in futon nor fauxton uis.

is possible view list of active user sessions on couchdb server?

short answer: no.

long answer: there's no such thing, really, user sessions in couchdb.

couchdb's "user session" cookies hmac of user's password salt, server secret, , time cookie created (so can tell when expires).

this means "active session" cookie contains valid hmac composed valid user salt, valid user cookie, , timestamp less n minutes in past (where n expiration time).

these sessions don't have created on couchdb server, logging auth requests not sufficient. it's common practice in situations create these cookies in app external couchdb.

as followup question:

why interested in listing active sessions? maybe there's alternative approach accomplish whatever you're aiming for.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -