Sometimes in an Intranet you need to notify the client that his session is about to expire and let him to decide if he will renew his session or let it die. That can be done either on server or client side.
The script offers two ways of refreshing the session, one by just reloading the page and other by calling an Ajax function.
If your template is a form, you will want definitively to use Ajax, or you would lose all the fields already filled in. If you are in a simple display page, refreshing that page will not cause any problems.
I created this test environment that you may download here.