Exemplo n.º 1
0
 /**
  * Make application die properly
  * 
  * @return void
  */
 static function rip()
 {
     // If the client doesn't support cookies, we destroy its session
     // Sometimes, the cookie is empty while the client support cookies (url auth in IE)
     /*if (empty($_COOKIE)) {
         CSessionHandler::end();
       }*/
     //access log
     include "./includes/access_log.php";
     // Long request log
     include "./includes/long_request_log.php";
     if (CAppUI::$token_restricted || CAppUI::$auth_info && CAppUI::$auth_info->restricted) {
         CSessionHandler::end(true);
     } else {
         // Explicit close of the session before object destruction
         CSessionHandler::writeClose();
     }
     self::$inPeace = true;
     die;
 }