I have been looking all day for a PHP or JavaScript solution to do this.

I would like to alert the user their session is about to time out (popup), ability to extend the session time.

Here is a visual if you need one on [this page](http://confluence.sakaiproject.org/display/REL/Session+Time-Out+Alert)

EDIT:

jQuery is the framework if that helps