If PHP is not handling requests asynchronously even after calling session_write_close, it may just be xdebug. I don't know if that is your issue, but I keep getting tripped up by this and driving myself crazy over it so I thought I'd post it if anyone else is having the same issue :)