summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorGeorge Petculescu <gxgpet@users.noreply.github.com>2022-06-27 21:12:41 +0200
committerGitHub <noreply@github.com>2022-06-27 21:12:41 +0200
commit9b8f2b7a8405acd1b8ad5956ada3d84472b1e8ae (patch)
treef1c07c2a8160ccc6805b576f8c42fee20d556f76 /user_guide_src/source
parent3efe7f0d070ad530208ea4f732708c1e660df0a7 (diff)
parentca00ea86443d2b1563b0e1b51ce8225bd315e69e (diff)
Merge pull request #6140 from Mouerr/develop
Bug Fix: [cookie_helper.php] set_cookie was missing sameSite argument
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/helpers/cookie_helper.rst3
1 files changed, 2 insertions, 1 deletions
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