Got the user timeout counter all working nicely with minimal server queries, now to show the login dialog when timeout is close or finished.