Delay session delivery to "after the response is sent" #513
Labels
backlog
We hope to fix this feature/bug in the future
needs discussion
Requires internal analysis/discussion
Currently the delivering phase of sessions (
SessionTracker::deliverSessions
) is built-in to thestartSession
function atRouteMatched
event which adds unnecessary overhead to some lucky clients.I understand that this "built-in" behaviour comes from underlying "bugsnag/bugsnag" package and I don't see a way how to change that from this package.
My point is to delay session delivery to after the response is sent. This can be done, as one example, by putting deliveryng code to
app()->terminating(<call deliver sessions>)
which will be invoked after the request is served.What do you think?
The text was updated successfully, but these errors were encountered: