-
Notifications
You must be signed in to change notification settings - Fork 73
DOC Document changes to cookie API and some default changes #715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC Document changes to cookie API and some default changes #715
Conversation
| We also want to ensure cookies are not shared between secure and non-secure sessions, so we must tell Silverstripe CMS to | ||
| use a [secure session](/developer_guides/cookies_and_sessions/sessions/#secure-session-cookie). | ||
| To do this, you may set the `cookie_secure` parameter to `true` in your `config.yml` for `Session`. | ||
|
|
||
| It is also a good idea to set the `samesite` attribute for the session cookie to `Strict` unless you have a specific use case for | ||
| sharing the session cookie across domains. | ||
|
|
||
| ```yml | ||
| SilverStripe\Control\Session: | ||
| cookie_samesite: 'Strict' | ||
| cookie_secure: true | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part should have been updated as part of #712.
I've opted to remove it, and instead just make sure this section links to the sessions docs, which includes this information.
|
|
||
| Clears a given cookie. | ||
|
|
||
| The same values used for `$path`, `$domain`, `$secure`, `$httpOnly`, and `$sameSite` when seting the cookie should be used here as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The same values used for `$path`, `$domain`, `$secure`, `$httpOnly`, and `$sameSite` when seting the cookie should be used here as well. | |
| The same values used for `$path`, `$domain`, `$secure`, `$httpOnly`, and `$sameSite` when setting the cookie should be used here as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
d6985ee to
ce96f6c
Compare
ce96f6c to
19f9713
Compare
Issue