isSecure
Learn how to check whether the cookies are sent only over HTTPS.
This method reports whether the cookies are sent only over HTTPS.
Signature
This method has the following signature:
public function isSecure(): boolThis method returns true when the cookies are sent only over HTTPS, and false otherwise.
Example
Here is a basic example of how to use this method:
<?phpuse Croct\Plug\CookieConfiguration;
$configuration = new CookieConfiguration();$secure = $configuration->isSecure();