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.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More