The session_id is associated with any data that is passed into a Dog program and developers can access this id. They can also associate a real user with the session.
The sessions will eventually timeout after some amount of times. Perhaps, 1 hour? They could also be implemented as a TTL collection in Mongo.
Whenever a client connects to the API we ensure an associated
session_id
. Thesession_id
is stored in Mongo as a document with the follow schema:The
session_id
is associated with any data that is passed into a Dog program and developers can access this id. They can also associate a real user with the session.The sessions will eventually timeout after some amount of times. Perhaps, 1 hour? They could also be implemented as a TTL collection in Mongo.