Fixes #5395: added note about session table id column length

This commit is contained in:
Alexander Makarov
2014-10-07 12:17:42 +04:00
parent 476e24ef58
commit df82aabe7b
2 changed files with 3 additions and 1 deletions

View File

@@ -174,7 +174,7 @@ where 'BLOB' refers to the BLOB-type of your preferred DBMS. Below are the BLOB
- PostgreSQL: BYTEA - PostgreSQL: BYTEA
- MSSQL: BLOB - MSSQL: BLOB
Note that length of id column should be adjusted if `session.hash_function` is changed in `php.ini`.
### Flash Data <a name="flash-data"></a> ### Flash Data <a name="flash-data"></a>

View File

@@ -65,6 +65,8 @@ class DbSession extends Session
* *
* When using DbSession in a production server, we recommend you create a DB index for the 'expire' * When using DbSession in a production server, we recommend you create a DB index for the 'expire'
* column in the session table to improve the performance. * column in the session table to improve the performance.
*
* Note that length of id column should be adjusted if `session.hash_function` is changed in `php.ini`.
*/ */
public $sessionTable = '{{%session}}'; public $sessionTable = '{{%session}}';