BP_Core_Members_Switching::secure_olduser_cookie()
Returns whether or not Member Switching’s equivalent of the ‘logged_in’ cookie should be secure.
Description
This is used to set the ‘secure’ flag on the old user cookie, for enhanced security.
Return
(bool) Should the old user cookie be secure?
Source
File: bp-members/classes/class-bp-core-members-switching.php
public static function secure_olduser_cookie() { return ( is_ssl() && ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ) ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.