Skip to content

Commit

Permalink
wording fix [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Oct 7, 2014
1 parent 08d0a1a commit 22dac1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/guide/runtime-sessions-cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ where 'BLOB' refers to the BLOB-type of your preferred DBMS. Below are the BLOB
- PostgreSQL: BYTEA
- MSSQL: BLOB

Note that length of id column should be adjusted if `session.hash_function` is changed in `php.ini`.
> Note: According to the php.ini setting of `session.hash_function`, you may need to adjust
the length of the `id` column. For example, if `session.hash_function=sha256`, you should use
length 64 instead of 40.


### Flash Data <a name="flash-data"></a>

Expand Down
4 changes: 3 additions & 1 deletion framework/web/DbSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ class DbSession extends Session
* 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.
*
* Note that length of id column should be adjusted if `session.hash_function` is changed in `php.ini`.
* Note that according to the php.ini setting of `session.hash_function`, you may need to adjust
* the length of the `id` column. For example, if `session.hash_function=sha256`, you should use
* length 64 instead of 40.
*/
public $sessionTable = '{{%session}}';

Expand Down

0 comments on commit 22dac1a

Please sign in to comment.