Skip to content

Commit 299bb8b

Browse files
authored
Merge pull request #8850 from obozdag/patch-3
docs: Fix typos in libraries/cookies.rst
2 parents d6814b7 + 897b5ae commit 299bb8b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

user_guide_src/source/libraries/cookies.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ cookie interaction.
2626
Creating Cookies
2727
****************
2828

29-
There are currently four (4) ways to create a new ``Cookie`` value object.
29+
There are currently four ways to create a new ``Cookie`` value object.
3030

3131
.. literalinclude:: cookies/001.php
3232

@@ -110,7 +110,7 @@ using the ``__Host-`` prefix, cookies must exhibit the following:
110110
Validating the SameSite Attribute
111111
=================================
112112

113-
The SameSite attribute only accepts three (3) values:
113+
The SameSite attribute accepts three values:
114114

115115
- **Lax**: Cookies are not sent on normal cross-site subrequests (for example to load images or frames into a third party site), but are sent when a user is navigating to the origin site (*i.e.* when following a link).
116116
- **Strict**: Cookies will only be sent in a first-party context and not be sent along with requests initiated by third party websites.
@@ -167,7 +167,7 @@ instance can be accessed from the current ``Response`` object.
167167
Creating CookieStore
168168
====================
169169

170-
CodeIgniter provides three (3) other ways to create a new instance of the ``CookieStore``.
170+
CodeIgniter provides three other ways to create a new instance of the ``CookieStore``.
171171

172172
.. literalinclude:: cookies/008.php
173173

@@ -248,16 +248,16 @@ objects. However, you may wish to define your own settings by changing the follo
248248
``Config\Cookie`` class in **app/Config/Cookie.php** file.
249249

250250
==================== ===================================== ========= =====================================================
251-
Setting Options/ Types Default Description
251+
Setting Options/Types Default Description
252252
==================== ===================================== ========= =====================================================
253253
**$prefix** ``string`` ``''`` Prefix to prepend to the cookie name.
254254
**$expires** ``DateTimeInterface|string|int`` ``0`` The expires timestamp.
255255
**$path** ``string`` ``/`` The path property of the cookie.
256256
**$domain** ``string`` ``''`` The domain property of the cookie.with trailing slash.
257-
**$secure** ``true/false`` ``false`` If to be sent over secure HTTPS.
258-
**$httponly** ``true/false`` ``true`` If not accessible to JavaScript.
259-
**$samesite** ``Lax|None|Strict|lax|none|strict''`` ``Lax`` The SameSite attribute.
260-
**$raw** ``true/false`` ``false`` If to be dispatched using ``setrawcookie()``.
257+
**$secure** ``true``/``false`` ``false`` If to be sent over secure HTTPS.
258+
**$httponly** ``true``/``false`` ``true`` If not accessible to JavaScript.
259+
**$samesite** ``Lax``/``None``/``Strict`` ``Lax`` The SameSite attribute.
260+
**$raw** ``true``/``false`` ``false`` If to be dispatched using ``setrawcookie()``.
261261
==================== ===================================== ========= =====================================================
262262

263263
In runtime, you can manually supply a new default using the ``Cookie::setDefaults()`` method.

0 commit comments

Comments
 (0)