Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #49265 [HttpKernel] Fix setting the session on the main request w…
…hen it's started by a subrequest (nicolas-grekas) This PR was merged into the 5.4 branch. Discussion ---------- [HttpKernel] Fix setting the session on the main request when it's started by a subrequest | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - When a sub-request starts the session (eg when app.flashes is used in a template), the main request remains unaware of it and so does `SessionListener` as a consequence. This prevents it from running its `onKernelResponse` logic, leading to e.g. a `Set-Cookie` being sent on such pages even when a session is already active. Commits ------- 0fc6721 [HttpKernel] Fix setting the session on the main request when it's started by a subrequest
- Loading branch information