Forum Moderators: coopster
I load file.php in one browser tab, and get output every 2 seconds.
If I load the same file.php in another tab while the first one is still going, it just spins doing nothing until the first tab is fully done.
What controls this behavior, the browser, or the server (mine=apache)? How can I get the server to run both tabs at the same time.
In this case the file in question needs to be a force-download script so that a user can download multiple files at a time.
All input appreciated...
My tests have shown that apache will not load the same file at the same time if they have the same name unless they are followed by different query strings.
Even more importantly (and this is probably your case) if you are using
file.php?id=1 and
file.php?id=2
These will not load simultaneously if you are using sessions. You must close the session for writing (session_write_close) before the other file will load.
Took me a week to work this out. I hope this helps someone.