Skip to content

Commit b7f492d

Browse files
authored
newline is required for correct rendering (yiisoft#19707)
1 parent 2fa83a7 commit b7f492d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guide/runtime-sessions-cookies.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,13 @@ If the browser supports the `sameSite` setting it will only include the cookie a
390390
You may read the [SameSite wiki article](https://owasp.org/www-community/SameSite) for more details.
391391
For better security, an exception will be thrown if `sameSite` is used with an unsupported version of PHP.
392392
To use this feature across different PHP versions check the version first. E.g.
393+
393394
```php
394395
[
395396
'sameSite' => PHP_VERSION_ID >= 70300 ? yii\web\Cookie::SAME_SITE_LAX : null,
396397
]
397398
```
399+
398400
> Note: Since not all browsers support the `sameSite` setting yet, it is still strongly recommended to also include
399401
[additional CSRF protection](security-best-practices.md#avoiding-csrf).
400402

0 commit comments

Comments
 (0)