jQuery Idle Timeout Demo - jQuery UI Dialog
This idle timeout countdown is triggered after 5 seconds. Keep your mouse and keyboard still!
A polling request is sent to the server every two seconds to keep the server side session alive. I've set this parameter to an extremely low number for demo purposes (timeout is only 5 seconds), but in reality, this should be much higher.
View source to see markup & CSS.