Wait 10 seconds, you will see a expiring warning. Wait 10 more seconds and you will see that you have been logged out.

In the real world I forward them to the logout url, which intern fowards them to login screen, instead of showing the 2nd dialog. You can modify the session.logout function.

We could use the active.idleTimer event to clearTimeout, however I prefer the user to explicitly say they want to keep the session open by clicking ok, not just moving the mouse on the screen.

This demo takes into account when a mobile device closes the browser, and after the idle timeout expires, launches the browser again. Instead of displaying the warning, it will jump straight to the logged out dialog.

For the sake of complete demo, I've included the code needed to call a keepalive url to keep the server side session valid.