Skip to content

Commit eb41212

Browse files
committed
docs: add sub section titles
1 parent f3ef6c2 commit eb41212

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

user_guide_src/source/libraries/sessions.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ However, there are some conditions that must be met:
559559
Configure DatabaseHandler
560560
-------------------------
561561

562+
Setting Table Name
563+
^^^^^^^^^^^^^^^^^^
564+
562565
In order to use the 'DatabaseHandler' session driver, you must also create this
563566
table that we already mentioned and then set it as your
564567
``$savePath`` value.
@@ -567,6 +570,9 @@ you would do this:
567570

568571
.. literalinclude:: sessions/039.php
569572

573+
Creating Database Table
574+
^^^^^^^^^^^^^^^^^^^^^^^
575+
570576
And then of course, create the database table ...
571577

572578
For MySQL::
@@ -594,6 +600,9 @@ For PostgreSQL::
594600
and the session ID and a delimiter. It should be increased as needed, for example,
595601
when using long session IDs.
596602

603+
Adding Primary Key
604+
^^^^^^^^^^^^^^^^^^
605+
597606
You will also need to add a PRIMARY KEY **depending on your $matchIP
598607
setting**. The examples below work both on MySQL and PostgreSQL::
599608

@@ -611,6 +620,9 @@ You can choose the Database group to use by adding a new line to the
611620

612621
.. literalinclude:: sessions/040.php
613622

623+
Setting Up Database Table with Command
624+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
625+
614626
If you'd rather not do all of this by hand, you can use the ``make:migration --session`` command
615627
from the cli to generate a migration file for you::
616628

0 commit comments

Comments
 (0)