File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ framework:
88 # Enables session support. Note that the session will ONLY be started if you read or write from it.
99 # Remove or comment this section to explicitly disable session support.
1010 session :
11- handler_id : null
11+ handler_id : session.handler.mongodb
1212 cookie_secure : auto
1313 cookie_samesite : lax
1414 storage_factory_id : session.storage.factory.native
@@ -33,3 +33,12 @@ when@test:
3333 test : true
3434 session :
3535 storage_factory_id : session.storage.factory.mock_file
36+
37+ services :
38+ session.handler.mongodb :
39+ class : Symfony\Component\HttpFoundation\Session\Storage\Handler\MongoDbSessionHandler
40+ arguments :
41+ $mongo : ' @doctrine_mongodb.odm.default_connection'
42+ $options :
43+ database : ' %env(MONGODB_DB)%'
44+ collection : ' sessions'
You can’t perform that action at this time.
0 commit comments