reference/network/functions/setrawcookie.xml
d829c7d11f311e5b115865fe6920f63aa2d9bde7
...
...
@@ -12,11 +12,18 @@
12
12
<type>bool</type><methodname>setrawcookie</methodname>
13
13
<methodparam><type>string</type><parameter>name</parameter></methodparam>
14
14
<methodparam choice="opt"><type>string</type><parameter>value</parameter></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter>expire</parameter><initializer>0</initializer></methodparam>
15
+
<methodparam choice="opt"><type>int</type><parameter>expires_or_options</parameter><initializer>0</initializer></methodparam>
16
16
<methodparam choice="opt"><type>string</type><parameter>path</parameter></methodparam>
17
17
<methodparam choice="opt"><type>string</type><parameter>domain</parameter></methodparam>
18
-
<methodparam choice="opt"><type>bool</type><parameter>secure</parameter><initializer>false</initializer></methodparam>
19
-
<methodparam choice="opt"><type>bool</type><parameter>httponly</parameter><initializer>false</initializer></methodparam>
18
+
<methodparam choice="opt"><type>bool</type><parameter>secure</parameter><initializer>&false;</initializer></methodparam>
19
+
<methodparam choice="opt"><type>bool</type><parameter>httponly</parameter><initializer>&false;</initializer></methodparam>
20
+
</methodsynopsis>
21
+
<para>Alternative signature available as of PHP 7.3.0 (not supported with named parameters):</para>
22
+
<methodsynopsis>
23
+
<type>bool</type><methodname>setrawcookie</methodname>
24
+
<methodparam><type>string</type><parameter>name</parameter></methodparam>
25
+
<methodparam choice="opt"><type>string</type><parameter>value</parameter></methodparam>
26
+
<methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>[]</initializer></methodparam>
20
27
</methodsynopsis>
21
28
<para>
22
29
<function>setrawcookie</function> is exactly the same as
...
...
@@ -53,16 +60,11 @@
53
60
</thead>
54
61
<tbody>
55
62
<row>
56
-
<entry>5.5.0</entry>
57
-
<entry>
58
-
A Max-Age attribute is now included in the Set-Cookie header sent to
59
-
the client.
60
-
</entry>
61
-
</row>
62
-
<row>
63
-
<entry>5.2.0</entry>
63
+
<entry>7.3.0</entry>
64
64
<entry>
65
-
The <parameter>httponly</parameter> parameter was added.
65
+
An alternative signature supporting an <parameter>options</parameter>
66
+
array has been added. This signature supports also setting of the
67
+
SameSite cookie attribute.
66
68
</entry>
67
69
</row>
68
70
</tbody>
69
71