# 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:

```php
public function isSecure(): bool
```

This 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:

```php
<?php
use Croct\Plug\CookieConfiguration;

$configuration = new CookieConfiguration();
$secure = $configuration->isSecure();
```
