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雜湊值,則觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'auth_cookie_bad_hash', $cookie_elements );
do_action( 'auth_cookie_bad_hash', $cookie_elements );
do_action( 'auth_cookie_bad_hash', $cookie_elements );

常見問題

FAQs
檢視更多 >