public function destroy() { if (PHP_SAPI === 'cli') { return; } if (!session_destroy()) { throw new SessionException('destroy session failed: :last_error_message'); } }