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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
df82aabe
Commit
df82aabe
authored
Oct 07, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5395: added note about session table id column length
parent
476e24ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
runtime-sessions-cookies.md
docs/guide/runtime-sessions-cookies.md
+1
-1
DbSession.php
framework/web/DbSession.php
+2
-0
No files found.
docs/guide/runtime-sessions-cookies.md
View file @
df82aabe
...
@@ -174,7 +174,7 @@ where 'BLOB' refers to the BLOB-type of your preferred DBMS. Below are the BLOB
...
@@ -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>
...
...
framework/web/DbSession.php
View file @
df82aabe
...
@@ -65,6 +65,8 @@ class DbSession extends Session
...
@@ -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}}'
;
...
...
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