Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 10aaf6a

Browse files
committed
Update documentation: add notes about getSameSite and setSameSite functions
1 parent c7e40d7 commit 10aaf6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/book/headers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,8 @@ Method signature | Descript
455455
`setSecure(bool $secure) : self` | Set whether the cookies contain the Secure flag.
456456
`isHttponly() : bool` | Whether the cookies can be accessed via the HTTP protocol only.
457457
`setHttponly(bool $httponly) : self` | Set whether the cookies can be accessed only via HTTP protocol.
458+
`getSameSite() : ?string` | Retrieve the SameSite directive value (`null` when it is not set).
459+
`setSameSite(?string $sameSite) : self` | Set SameSite directive value - allowed values are: `Strict`, `Lax` and `None`.
458460
`isExpired() : bool` | Whether the cookie is expired.
459461
`isSessionCookie() : bool` | Whether the cookie is a session cookie.
460462
`setQuoteFieldValue(bool $quotedValue) : self` | Set whether the value for this cookie should be quoted.

0 commit comments

Comments
 (0)