8000
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 50df1a7 commit 314c16bCopy full SHA for 314c16b
src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php
@@ -33,6 +33,13 @@ class NativeFileSessionHandler extends NativeSessionHandler
33
*/
34
public function __construct($savePath = null)
35
{
36
+ // We don't want to override the server settings in case the server is configured to handle sessions
37
+ // in something else than files. This makes it easy to configure servers to have sessions stored in
38
+ // memcached/redis or anything else from PHP.ini
39
+ if ('files' != ini_get('session.save_handler')) {
40
+ return;
41
+ }
42
+
43
if (null === $savePath) {
44
$savePath = ini_get('session.save_path');
45
}
0 commit comments