I think I'm overthinking it.
In the dynamic pagination case, I think I can set a $_SESSION
equal to microtime(true)
at the very beginning of the php and also hold it in a variable.
Right before transmission (or any other resource intensive step) I can check to see if it's still equal. If not, exit
.
However, if anyone else can come up with the general purpose solution where you can allow multiple parallel requests, they get the check and +1 from me.