I use Symfony as a framework for a web application, and I have the problem of PHP locking sessions.
When I open a browser tab and I access a page of the application that processes a large amount of data (and it takes between 12 and 18 seconds), if I open another tab and access another page of the application lighter (such as the index , which loads in less than a second), the latter tab does not load until the previous tab has finished.
I think this is because: when I open the first page, the Symfony controller automatically opens the session, PHP locks the file where it stores the session, so, until this page does not finish processing, the controller closes the session and PHP release the file where the session is stored, the following pages (which share session) will not load.
I tried to change the PHP handler to Memcache and solved this error, but I would like to know if you know any simple way to avoid locking PHP sessions in Symfony when PHP stores sessions in files.