You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #46697 [HttpKernel] Disable session tracking while collecting profiler data (nicolas-grekas)
This PR was merged into the 4.4 branch.
Discussion
----------
[HttpKernel] Disable session tracking while collecting profiler data
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
While playing with the Symfony book, I noticed that HttpCache wouldn't cache a public response because I was logged in as admin.
After inspecting the reason why, I noticed that some data collectors access the session and thus make the request private.
In this PR, the session tracking logic is disabled by using the same code that we use in the firewall, where we also ignore session tracking until authentication is actually needed by the app.
Commits
-------
2ad3f30 [HttpKernel] Disable session tracking while collecting profiler data
0 commit comments