public function loadFlash() { $this->flash_memory = array(); if (Session::issetKey(self::$flash_key)) { $this->flash_memory = Session::get(self::$flash_key); Session::unsetKey(self::$flash_key); } }
function logout() { Session::unsetKey("id_user"); //setcookie(COOKIE_PREFIX."login", "", time()-36000000, "/"); header("Location: " . ROOT); }