summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Petculescu <gxgpet@gmail.com>2021-04-02 01:57:40 +0200
committerGeorge Petculescu <gxgpet@gmail.com>2021-04-02 01:57:40 +0200
commit1415d4ec99c7dbaec2c34742536e00eb9cb7493f (patch)
treec647df4250909ee4ba91d2ecf0943a4c2b28246a
parent0cf5aa1a17bf0fd91797a943b8e696a454f5d326 (diff)
Improves input.rst (set cookie)
-rw-r--r--user_guide_src/source/libraries/input.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/user_guide_src/source/libraries/input.rst b/user_guide_src/source/libraries/input.rst
index a9255fa87..e0f3d8417 100644
--- a/user_guide_src/source/libraries/input.rst
+++ b/user_guide_src/source/libraries/input.rst
@@ -252,7 +252,7 @@ Class Reference
:param string $prefix: Cookie name prefix
:param bool $secure: Whether to only transfer the cookie through HTTPS
:param bool $httponly: Whether to only make the cookie accessible for HTTP requests (no JavaScript)
- :param string $samesite: Cookie's SameSite attribute ('Lax', 'Strict', 'None')
+ :param string $samesite: SameSite attribute ('Lax', 'Strict', 'None')
:rtype: void
@@ -266,14 +266,14 @@ Class Reference
parameter::
$cookie = array(
- 'name' => 'The Cookie Name',
- 'value' => 'The Value',
- 'expire' => 86500,
- 'domain' => '.some-domain.com',
- 'path' => '/',
- 'prefix' => 'myprefix_',
- 'secure' => TRUE,
- 'samesite' => 'strict'
+ 'name' => 'The Cookie Name',
+ 'value' => 'The Value',
+ 'expire' => 86500,
+ 'domain' => '.some-domain.com',
+ 'path' => '/',
+ 'prefix' => 'myprefix_',
+ 'secure' => TRUE,
+ 'samesite' => 'Strict'
);
$this->input->set_cookie($cookie);