Javascript, AJAX, Extend PHP Session Timeout, Bank Timeout
<p>Greetings,</p>

<p>I have the following JS code:</p>

<pre><code>var reloadTimer = function (options) {
  var seconds = options.seconds || 0,
      logoutURL = options.logoutURL,
      message = options.message;

  this.start = function () {
    setTimeout(function (){
      if ( confirm(message) ) {
        // RESET TIMER HERE
        $.get("renewSession.php"); 

      } else {
        window.location.href = logoutURL;
      }
    }, seconds * 1000);
  }

  return this;
};
</code></pre>

<p>And I would like to have the timer reset where I have the comment for RESET TIMER HERE. I have tried a few different things to no avail. Also the code calling this block is the following:</p>

<pre><code>var timer = reloadTimer({  seconds:20, logoutURL: 'logout.php',
                     message:'Do you want to stay logged in?'});
timer.start();
</code></pre>

<p>The code may look familiar as I found it on SO :-)</p>

<p>Thanks!</p>
