3.4.1 Cookie-based session tokens have the ‘Secure’ attribute set¶
Verify that cookie-based session tokens have the ‘Secure’ attribute set. (C6)
| Level 1 | X |
| Level 2 | X |
| Level 3 | X |
| CWE | NIST |
|---|---|
| 614 | 7.1.1 |
Symfony¶
The cookie_secure configuration option should be set to true.
Laravel¶
In config/session.php the option secure should be set to true.