﻿//setTimeout("refreshUserSession()", 300000); //300000 ms = 5 min.
setTimeout("refreshUserSession()", 1800000); //1800000 ms = 30 min.

function refreshUserSession()
{
    // Calls the corresponding PageMethod in the BasePage.
    // This, hopefully, keeps the session active and lets us know who is currently
    // on the site.
    if (window.location.pathname.toLowerCase().indexOf('intake.aspx') == -1) 
    {
        PageMethods.RefreshUserSession();
    }
    
    // Set a timer to keep calling this every so often.
    //setTimeout("refreshUserSession()", 300000);
    setTimeout("refreshUserSession()", 1800000);
}
