We make usage of Guzzle HTTP in order to make HTTP(s) request in order to generate a CSV file; Another component that we use is the $_SESSION
variable to store status information about the generation of the different files.
The main problem with this approach is that PHP blocks all other requests that make usage of the $_SESSION
variable. We know that we can defeat this "problem" with a certain function that is called session_write_close()
;
But we still need to be able to update the information and store it in the $_SESSION
variable later on and we should also be able to use the $_SESSION
information in other sections of the site; Thus it should be "synced".