auth_cookie_bad_session_token WordPress Action Hook
The auth_cookie_bad_session_token hook is triggered when a user's session token is invalid. This can happen if the user logs out of their account or if their session expires. When this hook is triggered, it will call the wp_clear_auth_cookie function which will clear the user's cookie and log them out of their account.
do_action( 'auth_cookie_bad_session_token', string[] $cookie_elements ) #
Fires if a bad session token is encountered.
Parameters
- $cookie_elements
(string[])Authentication cookie components. None of the components should be assumed to be valid as they come directly from a client-provided cookie value.
- 'username'
(string) User's username. - 'expiration'
(string) The time the cookie expires as a UNIX timestamp. - 'token'
(string) User's session token used. - 'hmac'
(string) The security hash for the cookie. - 'scheme'
(string) The cookie scheme to use.
- 'username'
Source
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |