Fixes an issue with expired sessions when the computer has been suspended for some time.

When the computer is resumed, then the timeout will continue to execute from where it was suspended, and not execute as early as is desired. In this fix we have a much shorter timeout value which checks the current time against the time when the session refresh is due, thus avoiding this issue.