I’ve added more debugging to my Web2 app and am seeing what appear to be “Ghost” sessions - these are sessions that exist for a long time, but do not have an active web page.
Here’s an example from this morning:
The first and last sessions are legit, but the middle 8 sessions are “ghost” ones. Oddly, they all were created at exactly the same time.
I’m not sure if this is a bug in 2021 R3.1 or something that I need to scan for and clean up myself?
Edit: oddly, the calculated session age is wrong, too.
And yet if you back calculate the session age, 1969581 seconds is about 547 hours, which is how long since I last rebooted the server - this means createdMicroseconds = 0, and thus the session.Opening event never actually fired for these ghost sessions. Very odd.
It’s mostly happening with this single user ‘smith002’ who is on Firefox 96, and the # of ghost sessions is close to the # of times I see this in the log.
Maybe the ghost sessions are leftovers when Session.Closing is throwing this exception?
I’m able to reproduce this in the debugger now - the debugger breaks into SessionShutdownThread (but there is no code visible, presumably since it’s breaking into the framework). I’ll see if I can come up with a minimal reproducible case and file it.