php-pm / php-pm-httpkernel

HttpKernel adapter for use of Symfony and Laravel frameworks with PHP-PM
MIT License
246 stars 72 forks source link

Session leaking with Symfony #130

Closed mathieudz closed 6 years ago

mathieudz commented 6 years ago

Sessions are leaking once in a while in my web application when running with PHP PM. I see that HttpKernel closes the session after a response, but still some users have unwillingly been taking over sessions of other users. I see in my logs that a particular IP suddenly has become another user that was active at that time.

mathieudz commented 6 years ago

A better look at the code shows that if the application raises an exception there's no session cleaning in the catch handler of HttpKernel::handle() - only if there's a response without exception. I guess that is the issue here.

mathieudz commented 6 years ago

@andig This one can be closed now