Skip to content

Commit

Permalink
docs: add important note
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jun 19, 2023
1 parent eb41212 commit 658c517
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions user_guide_src/source/libraries/sessions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,11 @@ setting**. The examples below work both on MySQL and PostgreSQL::
// To drop a previously created primary key (use when changing the setting)
ALTER TABLE ci_sessions DROP PRIMARY KEY;

.. important:: If you don't add the correct primary key, the following error
may occur::

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:

Expand Down

0 comments on commit 658c517

Please sign in to comment.