I’ve recently taken over a project and trying to make sense of some large document fetches from Mongo and trying to get a better understanding about how SeverSession works. It appears that every time a user connects it is grabbing the entire contents of the serversession collection, which is currently about 4000 records. We seem to be using ServerSession to save various bits of information, i.e. ServerSession.set(“someId”, pID).
Does ServerSession automatically clean up after itself once a user closes or logs out? I’m guessing not since we have about 4000 entries and maybe 2 or 3 users currently. Is there a way to force a cleanup?