Skip to content

Commit

Permalink
Merge pull request afup#1449 from afup/revert_session
Browse files Browse the repository at this point in the history
on reviens sur l'ancien session handler
  • Loading branch information
agallou authored Feb 12, 2024
2 parents ec400fd + c3a8e62 commit 92ee0ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@ framework:
trusted_hosts: ~
session:
# https://symfony.com/doc/4.x/session/database.html#store-sessions-in-a-relational-database-mariadb-mysql-postgresql
handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
#handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
storage_id: session.storage.php_bridge
handler_id: ~
fragments: ~
http_method_override: true
assets: ~
Expand Down
4 changes: 4 additions & 0 deletions htdocs/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}

session_start();

/** @var \Composer\Autoload\ClassLoader $loader */
$loader = require __DIR__.'/../vendor/autoload.php';
Debug::enable();
Expand All @@ -32,6 +34,8 @@
/** @var \Composer\Autoload\ClassLoader $loader */
$loader = require __DIR__.'/../vendor/autoload.php';

session_start();

$kernel = new AppKernel('prod', false);
}

Expand Down
4 changes: 4 additions & 0 deletions htdocs/pages/planete/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}

session_start();

/** @var ClassLoader $loader */
$loader = require __DIR__.'/../../../vendor/autoload.php';
Debug::enable();
Expand All @@ -41,6 +43,8 @@
/** @var ClassLoader $loader */
$loader = require __DIR__.'/../../../vendor/autoload.php';

session_start();

$kernel = new PlaneteAppKernel('prod', false);
}

Expand Down

0 comments on commit 92ee0ac

Please sign in to comment.