We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8c20f commit fff25ceCopy full SHA for fff25ce
components/http_foundation/session_configuration.rst
@@ -83,7 +83,8 @@ Example usage::
83
use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
84
use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler;
85
86
- $storage = new NativeSessionStorage(array(), new PdoSessionHandler());
+ $pdo = new \PDO('mysql:dbname=testdb;host=127.0.0.1');
87
+ $storage = new NativeSessionStorage(array(), new PdoSessionHandler($pdo));
88
$session = new Session($storage);
89
90
Configuring PHP Sessions
0 commit comments