jQuery sessionTimeout Plugin Demo
the plugin will display a warning dialog after 3 seconds and automatically redirect the page after 30 seconds.