Skip to content

Commit

Permalink
docs: update description
Browse files Browse the repository at this point in the history
There is already $DBGroup in the config file.
  • Loading branch information
kenjis committed Jun 19, 2023
1 parent 658c517 commit 963526a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions user_guide_src/source/libraries/sessions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,12 @@ setting**. The examples below work both on MySQL and PostgreSQL::

Uncaught mysqli_sql_exception: Duplicate entry 'ci_session:***' for key 'ci_sessions.PRIMARY'

You can choose the Database group to use by adding a new line to the
**app/Config/Session.php** file with the name of the group to use:
Changing Database Group
^^^^^^^^^^^^^^^^^^^^^^^

The default database group is used by default.
You can change the database group to use by changing the ``$DBGroup`` property
in the **app/Config/Session.php** file to the name of the group to use:

.. literalinclude:: sessions/040.php

Expand Down

0 comments on commit 963526a

Please sign in to comment.