Skip to content

Commit 667cfd2

Browse files
authored
Merge pull request #8267 from kenjis/docs-upgrade-sessions
docs: add about session table change in upgrading from 3.x
2 parents ab913e3 + 50412c7 commit 667cfd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

user_guide_src/source/installation/upgrade_sessions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Documentations
1414
What has been changed
1515
=====================
1616
- Only small things like the method names and the loading of the library have changed.
17+
- The definition of the session table in Database Driver has changed.
1718

1819
Upgrade Guide
1920
=============
@@ -24,6 +25,7 @@ Upgrade Guide
2425
- To set data use ``$session->set($array);`` instead of ``$this->session->set_userdata($array);``.
2526
- To remove data use ``unset($_SESSION['some_name']);`` or ``$session->remove('some_name');`` instead of ``$this->session->unset_userdata('some_name');``.
2627
- To mark session data as flashdata, which will only be available for the next request, use ``$session->markAsFlashdata('item');`` instead of ``$this->session->mark_as_flash('item');```
28+
3. If you use Database Driver, you need to recreate the session table. See :ref:`sessions-databasehandler-driver`.
2729

2830
Code Example
2931
============

0 commit comments

Comments
 (0)