Skip to main content
Feb 25, 2019 6:32 PM UTC
Solved

How can I monitor a user's idle session

I would like to monitor a user's idle time.  That way, I can logout a user just prior to the normal session timeout and navigate the user back to the FormLogin page of the user's organization.

 

Thanks,

Tim

slangleyAnswer
Feb 25, 2019 7:51 PM UTC

Hi @Timo697.

 

The time a session goes idle is not exposed, therefore it is not possible to know when the session will timeout.  It may be possible to do something with custom authenticators but we would not be able to guide you given it would be custom.

 

Regards.

 

--Sharon

3 replies

slangleyAnswer
Feb 25, 2019 7:51 PM UTC

Hi @Timo697.

 

The time a session goes idle is not exposed, therefore it is not possible to know when the session will timeout.  It may be possible to do something with custom authenticators but we would not be able to guide you given it would be custom.

 

Regards.

 

--Sharon

Timo697Author
Feb 25, 2019 7:56 PM UTC

Thank you for responding Sharon.

 

Does the service "Resources["CurrentSessionInfo"].GetActiveUsers()" indicate if a user's session timed out?  If so, would I be able to navigate them to the FormLogin page?

Feb 25, 2019 8:08 PM UTC

Hi @Timo697.

 

This service only shows active users and the last time they logged in.  The last login date/time could be several hours old if the user has been active for a while. Once they get timed out, they disappear from the screen.

 

Regards.

 

--Sharon