diff --git a/reference/network/functions/setcookie.xml b/reference/network/functions/setcookie.xml index cbf37dc031..d7df16e5a2 100644 --- a/reference/network/functions/setcookie.xml +++ b/reference/network/functions/setcookie.xml @@ -12,13 +12,13 @@ boolsetcookie stringname stringvalue"" - intexpires0 + intexpires_or_options0 stringpath"" stringdomain"" boolsecure&false; boolhttponly&false; - Alternative signature available as of PHP 7.3.0: + Alternative signature available as of PHP 7.3.0 (not supported with named parameters): boolsetcookie stringname @@ -68,7 +68,7 @@ - expires + expires_or_options The time the cookie expires. This is a Unix timestamp so is @@ -83,7 +83,7 @@ - You may notice the expires parameter takes on a + You may notice the expires_or_options parameter takes on a Unix timestamp, as opposed to the date format Wdy, DD-Mon-YYYY HH:MM:SS GMT, this is because PHP does this conversion internally. @@ -342,7 +342,7 @@ one : cookieone Cookies will not become visible until the next loading of a page that the cookie should be visible for. To test if a cookie was successfully set, check for the cookie on a next loading page before the cookie - expires. Expire time is set via the expires + expires. Expire time is set via the expires_or_options parameter. A nice way to debug the existence of cookies is by simply calling print_r($_COOKIE);. diff --git a/reference/network/functions/setrawcookie.xml b/reference/network/functions/setrawcookie.xml index b84d4a16f3..992c73278a 100644 --- a/reference/network/functions/setrawcookie.xml +++ b/reference/network/functions/setrawcookie.xml @@ -12,13 +12,13 @@ boolsetrawcookie stringname stringvalue - intexpires0 + intexpires_or_options0 stringpath stringdomain boolsecure&false; boolhttponly&false; - Alternative signature available as of PHP 7.3.0: + Alternative signature available as of PHP 7.3.0 (not supported with named parameters): boolsetrawcookie stringname