auth_cookie_bad_hash

动作钩子
do_action( 'auth_cookie_bad_hash', $cookie_elements )
参数
  • (string[]) $cookie_elements { Authentication cookie components. None of the components should be assumed to be valid as they come directly from a client-provided cookie value. @type string $username User's username. @type string $expiration The time the cookie expires as a UNIX timestamp. @type string $token User's session token used. @type string $hmac The security hash for the cookie. @type string $scheme The cookie scheme to use. }
    Required:
定义位置
相关勾子
auth_cookie_bad_usernameauth_cookie_validauth_cookieauth_cookie_bad_session_tokenauth_cookie_malformed
相关方法
wp_set_auth_cookiesanitize_hex_color_no_hashwp_clear_auth_cookiewp_parse_auth_cookiewp_auth_check_loadwp_authenticate_cookie
引入
2.7.0
弃用
-

auth_cookie_bad_hash是WordPress中的一个函数,它检查认证cookie的哈希值是否无效: 这个函数用来检测认证cookie是否被篡改过,这可能表明有安全漏洞。

如果遇到一个坏的认证cookie哈希值,则触发。

do_action( 'auth_cookie_bad_hash', $cookie_elements );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-17 08:35:46

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: