Skip to content

Commit

Permalink
docs: add changelog and update Response::setCookie()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Dec 8, 2021
1 parent 6817dc6 commit 49cd879
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions user_guide_src/source/changelogs/v4.1.6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,22 @@ Enhancements
Changes
*******

- The process of sending cookies has been moved to the ``Response`` class. Now the ``Security`` and ``CookieStore`` class don't send cookies, set them to the Response.

Deprecations
************

Sending Cookies
===============

The process of sending cookies has been moved to the ``Response`` class.
And the following methods are deprecated:

- ``CookieStore::dispatch()``
- ``CookieStore::setRawCookie()``
- ``CookieStore::setCookie()``
- ``Security::sendCookie()``
- ``Security::doSendCookie()``

Bugs Fixed
**********
2 changes: 1 addition & 1 deletion user_guide_src/source/outgoing/response.rst
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ The methods provided by the parent class that are available are:

.. php:method:: setCookie($name = ''[, $value = ''[, $expire = ''[, $domain = ''[, $path = '/'[, $prefix = ''[, $secure = false[, $httponly = false[, $samesite = null]]]]]]]])
:param mixed $name: Cookie name or an array of parameters
:param array|Cookie|string $name: Cookie name or an array of parameters or an instance of ``CodeIgniter\Cookie\Cookie``
:param string $value: Cookie value
:param int $expire: Cookie expiration time in seconds
:param string $domain: Cookie domain
Expand Down

0 comments on commit 49cd879

Please sign in to comment.