![]() |
|
Snippets |
|
By default, symfony stores user sessions in files.
You can store them in your database by changing your apps/APPNAME/config/factories.yml configuration file:
all:
storage:
class: sfMySQLSessionStorage
param:
database: propel
db_table: SESSION_TABLE_NAME
There are several available session storage classes:
The API documentation lists all available configuration parameters.
Comments on this snippet
You can alsoe change the session/table names if you do not like the defaults:
storage: class: sfCreoleSessionStorage param: database: propel session_name: symfony db_table: sessions db_id_col: id db_data_col: data db_time_col: updated_at