auth_cookie_bad_session_token

動作鉤子
do_action( 'auth_cookie_bad_session_token', $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_bad_hashauth_cookie_expirationauth_cookie_expiredauth_cookie_valid
相關方法
wp_get_session_token_wp_auto_add_pages_to_menums_cookie_constantswp_cookie_constantswp_get_all_sessions
引入
4.0.0
棄用
-

auth_cookie_bad_session_token是WordPress中的一個函式,它檢查認證cookie中的會話令牌是否無效: 這個函式用於檢測認證cookie是否被篡改,這可能表明有安全漏洞。

如果遇到一個壞的會話令牌,則發生觸發。

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

常見問題

FAQs
檢視更多 >