You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param mixed $name: Cookie name *or* associative array of all of the parameters available to this function
26
+
:param array|Cookie|string $name: Cookie name *or* associative array of all of the parameters available to this function *or* an instance of ``CodeIgniter\Cookie\Cookie``
27
27
:param string $value: Cookie value
28
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
@@ -55,11 +55,12 @@ The following functions are available:
55
55
This helper function gives you friendlier syntax to get browser
56
56
cookies. Refer to the :doc:`IncomingRequest Library </incoming/incomingrequest>` for
57
57
detailed description of its use, as this function acts very
58
-
similarly to ``IncomingRequest::getCookie()``, except it will also prepend
58
+
similarly to :php:meth:`CodeIgniter\\HTTP\\IncomingRequest::getCookie()`,
59
+
except it will also prepend
59
60
the ``Config\Cookie::$prefix`` that you might've set in your
60
61
**app/Config/Cookie.php** file.
61
62
62
-
.. warning:: Using XSS filtering is a bad practice. It does not prevent XSS attacks perfectly. Using ``esc()`` with the correct ``$context`` in the views is recommended.
63
+
.. warning:: Using XSS filtering is a bad practice. It does not prevent XSS attacks perfectly. Using :php:func:`esc()` with the correct ``$context`` in the views is recommended.
:param array|Cookie|string $name: Cookie name or an array of parameters or an instance of ``CodeIgniter\Cookie\Cookie``
448
+
:param array|Cookie|string $name: Cookie name *or* associative array of all of the parameters available to this method *or* an instance of ``CodeIgniter\Cookie\Cookie``
449
449
:param string $value: Cookie value
450
450
:param int $expire: Cookie expiration time in seconds. If set to ``0`` the cookie will only last as long as the browser is open
0 commit comments