Skip to content

Commit c6ad1de

Browse files
authored
Merge pull request #7110 from kenjis/fix-docs-cookie-expire
docs: add explanation for Cookie $expire is `0`
2 parents 43d81fb + acc3358 commit c6ad1de

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/helpers/cookie_helper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The following functions are available:
2525
2626
:param mixed $name: Cookie name *or* associative array of all of the parameters available to this function
2727
:param string $value: Cookie value
28-
:param int $expire: Number of seconds until expiration
28+
:param int $expire: Number of seconds until expiration. If set to ``0`` the cookie will only last as long as the browser is open
2929
:param string $domain: Cookie domain (usually: .yourdomain.com)
3030
:param string $path: Cookie path
3131
:param string $prefix: Cookie name prefix. If ``''``, the default from **app/Config/Cookie.php** is used

user_guide_src/source/outgoing/response.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ The methods provided by the parent class that are available are:
366366
367367
:param array|Cookie|string $name: Cookie name or an array of parameters or an instance of ``CodeIgniter\Cookie\Cookie``
368368
:param string $value: Cookie value
369-
:param int $expire: Cookie expiration time in seconds
369+
:param int $expire: Cookie expiration time in seconds. If set to ``0`` the cookie will only last as long as the browser is open
370370
:param string $domain: Cookie domain
371371
:param string $path: Cookie path
372372
:param string $prefix: Cookie name prefix. If set to ``''``, the default value from **app/Config/Cookie.php** will be used

0 commit comments

Comments
 (0)