lastActivity is required so that there is no intial ajax call made when the script is loaded. Feedback from developers was that when the page is loaded the server side session was just refreshed so it was making an unecessary call to the session script.