mirror of
https://github.com/flarum/core.git
synced 2025-07-24 02:01:19 +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:
committed by
Franz Liedke
parent
87860b471f
commit
a0105eb40b
@@ -464,7 +464,7 @@ class FrontendView
|
||||
|
||||
return [
|
||||
'userId' => $actor->id,
|
||||
'csrfToken' => $session->get('csrf_token')
|
||||
'csrfToken' => $session->token()
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user