Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
22dac1af
Commit
22dac1af
authored
Oct 07, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wording fix [skip ci]
parent
08d0a1ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
runtime-sessions-cookies.md
docs/guide/runtime-sessions-cookies.md
+4
-1
DbSession.php
framework/web/DbSession.php
+3
-1
No files found.
docs/guide/runtime-sessions-cookies.md
View file @
22dac1af
...
...
@@ -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>
...
...
framework/web/DbSession.php
View file @
22dac1af
...
...
@@ -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}}'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment