Created a save_session_url in main.js to hold the url to save_session_log.php so that it can be used by all ajax post requests