if(typeof session_key != 'undefined'){
  setInterval(function(){
    $.ajax({
      method: 'get',
      data: 'update='+session_key,
      url: './'
    });
  }, 1000 * 60 * 29 );
  $(window).bind('unload', function(){
    $.ajax({
      method: 'get',
      async: false,
      data: 'destroy='+session_key,
      url: './'
    });
    return true;
  });
}



