I'm having trouble running session_write_close() on Nginx, it has no effect.
When I access resources that take a long time to complete, the other pages of the application are blocked, waiting for the first page to finish.
I migrated my application from Apache to Nginx, in Apache it was working normally.
No information appears in the Nginx or Apache log. Does anyone know why this occurs?
Best regards.
I also experienced the same with php 7 and Nginx. You can change your cache memory, use memchached or redis.
Assuming nginx is running by default under the username nginx, then I would check /var/lib/php/session foder and see if it has the proper ownership. If you switched from apache, then that folder has either nobody or www-data ownership (user/group). So do a ls -lsa /var/lib/php/session
, see who owns the folder and then do a chown nginx:nginx /var/lib/php/session -R
. Then try again and see if it works or not.