secure_logged_in_cookie WordPress Filter Hook
The secure_logged_in_cookie WordPress hook is used to ensure that a user's session information is stored securely in a cookie. This information includes the user's ID, username, and password. This hook is important because it helps to prevent someone from being able to hijack a user's session and gain access to their account.
apply_filters( 'secure_logged_in_cookie', bool $secure_logged_in_cookie , int $user_id , bool $secure ) #
Filters whether the logged in cookie should only be sent over HTTPS.
Parameters
- $secure_logged_in_cookie
(bool)Whether the logged in cookie should only be sent over HTTPS.
- $user_id
(int)User ID.
- $secure
(bool)Whether the auth cookie should only be sent over HTTPS.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |