From ca00ea86443d2b1563b0e1b51ce8225bd315e69e Mon Sep 17 00:00:00 2001 From: Mouad Err Date: Tue, 21 Jun 2022 14:15:11 +0100 Subject: Bug Fix: [cookie_helper.php] set_cookie was missing sameSite argument --- user_guide_src/source/helpers/cookie_helper.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'user_guide_src/source/helpers/cookie_helper.rst') diff --git a/user_guide_src/source/helpers/cookie_helper.rst b/user_guide_src/source/helpers/cookie_helper.rst index 25c4c3a0b..741b297d6 100644 --- a/user_guide_src/source/helpers/cookie_helper.rst +++ b/user_guide_src/source/helpers/cookie_helper.rst @@ -25,7 +25,7 @@ Available Functions The following functions are available: -.. php:function:: set_cookie($name[, $value = ''[, $expire = 0[, $domain = ''[, $path = '/'[, $prefix = ''[, $secure = NULL[, $httponly = NULL]]]]]]]) +.. php:function:: set_cookie($name[, $value = ''[, $expire = 0[, $domain = ''[, $path = '/'[, $prefix = ''[, $secure = NULL[, $httponly = NULL[, $samesite = NULL]]]]]]]]) :param mixed $name: Cookie name *or* associative array of all of the parameters available to this function :param string $value: Cookie value @@ -35,6 +35,7 @@ The following functions are available: :param string $prefix: Cookie name prefix :param bool $secure: Whether to only send the cookie through HTTPS :param bool $httponly: Whether to hide the cookie from JavaScript + :param string $samesite: SameSite attribute ('Lax', 'Strict', 'None') :rtype: void This helper function gives you friendlier syntax to set browser -- cgit v1.2.3-24-g4f1b