Skip to content

Commit 6b0531b

Browse files
authored
Merge pull request #7586 from kenjis/fix-docs-sessions.rst
docs: fix sessions.rst
2 parents 291b40b + fb269be commit 6b0531b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

user_guide_src/source/libraries/sessions.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ but does not take any configuration options.
3939

4040
.. literalinclude:: sessions/002.php
4141

42-
How do Sessions work?
42+
How Do Sessions Work?
4343
=====================
4444

4545
When a page is loaded, the session class will check to see if a valid
@@ -59,7 +59,7 @@ automatic.
5959
.. note:: Under CLI, the Session library will automatically halt itself,
6060
as this is a concept based entirely on the HTTP protocol.
6161

62-
A note about concurrency
62+
A Note about Concurrency
6363
------------------------
6464

6565
Unless you're developing a website with heavy AJAX usage, you can skip this
@@ -435,7 +435,7 @@ Preference Default Opti
435435
unexpected results or be changed in the future. Please configure
436436
everything properly.
437437

438-
.. note:: If ``sessionExpiration`` is set to ``0``, the ``session.gc_maxlifetime``
438+
.. note:: If ``expiration`` is set to ``0``, the ``session.gc_maxlifetime``
439439
setting set by PHP in session management will be used as-is
440440
(often the default value of ``1440``). This needs to be changed in
441441
``php.ini`` or via ``ini_set()`` as needed.
@@ -597,10 +597,10 @@ For PostgreSQL::
597597
You will also need to add a PRIMARY KEY **depending on your $matchIP
598598
setting**. The examples below work both on MySQL and PostgreSQL::
599599

600-
// When sessionMatchIP = true
600+
// When $matchIP = true
601601
ALTER TABLE ci_sessions ADD PRIMARY KEY (id, ip_address);
602602

603-
// When sessionMatchIP = false
603+
// When $matchIP = false
604604
ALTER TABLE ci_sessions ADD PRIMARY KEY (id);
605605

606606
// To drop a previously created primary key (use when changing the setting)
@@ -627,7 +627,7 @@ RedisHandler Driver
627627

628628
.. note:: Since Redis doesn't have a locking mechanism exposed, locks for
629629
this driver are emulated by a separate value that is kept for up
630-
to 300 seconds. With ``v4.3.2`` or above, You can connect ``Redis`` with **TLS** protocol.
630+
to 300 seconds. With ``v4.3.2`` or above, you can connect ``Redis`` with **TLS** protocol.
631631

632632
Redis is a storage engine typically used for caching and popular because
633633
of its high performance, which is also probably your reason to use the

user_guide_src/source/libraries/sessions/040.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ class Session extends BaseConfig
99
{
1010
// ...
1111
public ?string $DBGroup = 'groupName';
12+
13+
// ...
1214
}

0 commit comments

Comments
 (0)