Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ewistrand's avatar

Odd Session Behavior

I have a global middleware storing session variables into an array based on query string parameters. If I change these parameters and dump in the middleware everything looks good and changes show. If I dump the same session array in a controller or in a view, the updated session variables are not showing as updated.

I have heard this can have something to do with the web middleware, but it is running the web middleware on the request.

0 likes
0 replies

Please or to participate in this conversation.