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.
2 parents a6e8a02 + a0acf05 commit 140e642Copy full SHA for 140e642
Task/TaskManager.php
@@ -174,7 +174,11 @@ public function isEnabled()
174
public function execute(PostResponseEvent $event)
175
{
176
if ($this->isEnabled() && $this->masterRequest) {
177
- session_write_close();
+ $session = $event->getRequest()->getSession();
178
+ if (null !== $session) {
179
+ // Saves the session, which calls PHP's session_write_close()
180
+ $session->save();
181
+ }
182
183
// Allow any loaded plugins to fire
184
foreach ($this->getPlugins() as $plugin) {
0 commit comments