Skip to content

Commit 5f36a4e

Browse files
committed
docs: add sub section titles
1 parent dc8ab1d commit 5f36a4e

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

user_guide_src/source/libraries/cookies.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ also take advantage of the class's constants to make it not a hassle.
131131

132132
.. literalinclude:: cookies/006.php
133133

134+
134135
***************
135136
Sending Cookies
136137
***************
@@ -146,17 +147,26 @@ You can also use the :php:func:`set_cookie()` helper function:
146147

147148
.. literalinclude:: cookies/018.php
148149

150+
149151
**********************
150152
Using the Cookie Store
151153
**********************
152154

153155
.. note:: Normally, there is no need to use CookieStore directly.
154156

155-
The ``CookieStore`` class represents an immutable collection of ``Cookie`` objects. The ``CookieStore``
157+
The ``CookieStore`` class represents an immutable collection of ``Cookie`` objects.
158+
159+
Getting the Store from Response
160+
===============================
161+
162+
The ``CookieStore``
156163
instance can be accessed from the current ``Response`` object.
157164

158165
.. literalinclude:: cookies/007.php
159166

167+
Creating CookieStore
168+
====================
169+
160170
CodeIgniter provides three (3) other ways to create a new instance of the ``CookieStore``.
161171

162172
.. literalinclude:: cookies/008.php

0 commit comments

Comments
 (0)