Implemented

Old Session States

avatar

I constantly run into the issue where RDM stores phantom sessions that haven't been used in days (see attached screenshots). Typically this occurs when the application crashes with open session states, which is very common when using the IE browser control sync it runs on the main application thread and gets hung up every now and then, affecting the entire application. Or due to other such system screens, such as BSOD (happened yesterday, unrelated to RDM). Regardless, crashes like these happen, they are not all preventable, however I think RDM could do a better job of handling obviously old session states. I know that from this 'Opened Sessions' tab that I can manually specify that a session is closed, however this happens frequently enough that this is becoming frustrating. We never really know to trust the 'Session is Already Opened' dialog if we keep seeing these false positives.

Since we host on our own DB, is there a query I can run to check what sessions are still open? And also is there a data column that tracks something like "last action/click/event" time. Therefore I could just create a stored procedure that runs infrequently to check and then close any sessions that are obviously outdated? Or perhaps is there something already built into RDM to handle this?

HB

All Comments (21)

avatar

You can try something like this:

UPDATE dbo.ConnectionLog

SET

ManualEndDateTime = GETDATE()

WHERE SupportClose = 1

AND ManualEndDateTime IS NULL

AND EndDateTime IS NULL

AND EndDateTimeUTC IS NULL

AND DATEDIFF(hh, StartDateTime, GETDATE()) > 12;

This will manually close (the log) any opened session log that supports "close" 12 hours after the session was opened.

Note, sessions older than 7 days get ignored and are not displayed in "Open sessions"

Adjust as needed.

Best regards,

Stéfane Lavergne