/** * Clears the nonce in the session ['Q']['nonce'] field and in cookie 'Q_nonce' * @method clearNonce */ static function clearNonce($overwrite = false) { self::start(); $_SESSION['Q']['nonce'] = null; if (!empty($_SERVER['HTTP_HOST'])) { Q_Response::clearCookie('Q_nonce'); } }