/** * Destroys current session and removes session cookie * @return bool */ public function destroy() { // Remove session cookie $options = $this->getCookieOptions(); if (!setcookie($options['name'], '', -1)) { return false; } // Clean session data return parent::destroy(); }