1
0
mirror of https://github.com/flarum/core.git synced 2025-10-15 08:55:53 +02:00

Use Illuminate Session component instead of Symfony

Symfony's component relies on PHP's native session functionality, which
is not ideal. It automatically sets its own cookie headers, resulting in
this issue: https://github.com/flarum/core/issues/1084#issuecomment-364569953

The Illuminate component is more powerful and has a simpler API for
extension with other drivers and such, and fits in nicely with other
components we use (the majority of which are from Illuminate).
This commit is contained in:
Toby Zerner
2018-02-10 12:04:07 +10:30
committed by Franz Liedke
parent b4e093ab8a
commit 5672819549
12 changed files with 91 additions and 38 deletions

View File

@@ -102,7 +102,7 @@ class LogOutController implements ControllerInterface
// If a valid CSRF token hasn't been provided, show a view which will
// allow the user to press a button to complete the log out process.
$csrfToken = $session->get('csrf_token');
$csrfToken = $session->token();
if (array_get($request->getQueryParams(), 'token') !== $csrfToken) {
$return = array_get($request->getQueryParams(), 'return');