You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Cookie.php
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ class Cookie
27
27
protected$httpOnly;
28
28
private$raw;
29
29
private$sameSite;
30
+
private$secureDefault = false;
30
31
31
32
constSAMESITE_LAX = 'lax';
32
33
constSAMESITE_STRICT = 'strict';
@@ -72,14 +73,14 @@ public static function fromString($cookie, $decode = false)
72
73
* @param int|string|\DateTimeInterface $expire The time the cookie expires
73
74
* @param string $path The path on the server in which the cookie will be available on
74
75
* @param string|null $domain The domain that the cookie is available to
75
-
* @param bool $secure Whether the cookie should only be transmitted over a secure HTTPS connection from the client
76
+
* @param bool|null $secure Whether the cookie should only be transmitted over a secure HTTPS connection from the client or null to set it later using {@see setSecureDefault()}
76
77
* @param bool $httpOnly Whether the cookie will be made accessible only through the HTTP protocol
77
78
* @param bool $raw Whether the cookie value should be sent with no url encoding
78
79
* @param string|null $sameSite Whether the cookie will be available for cross-site requests
0 commit comments