File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,20 @@ HttpFoundation
106
106
--------------
107
107
108
108
* The ` PdoSessionHandler ` to store sessions in a database changed significantly.
109
+ This introduced a ** backwards-compatability** break in the schema of the
110
+ session table. The following changes must be made to your session table:
111
+
112
+ - Add a new integer column called ` sess_lifetime ` . Assuming you have the
113
+ default column and table names, in MySQL this would be:
114
+ ALTER TABLE ` session ` ADD ` sess_lifetime ` INT NOT NULL ;
115
+ - Change the data column (default: ` sess_value ` ) to be a Blob type. In
116
+ MySQL this would be:
117
+ ALTER TABLE ` session ` CHANGE ` sess_value ` ` session_value ` BLOB NOT NULL;
118
+
119
+ There is also an [ issue] ( https://github.com/symfony/symfony/issues/12834 )
120
+ that affects Windows servers.
121
+
122
+ The changes to the ` PdoSessionHandler ` are:
109
123
- By default, it now implements session locking to prevent loss of data by concurrent access to the same session.
110
124
- It does so using a transaction between opening and closing a session. For this reason, it's not
111
125
recommended to use the same database connection that you also use for your application logic.
You can’t perform that action at this time.
0 commit comments