Close PHP session without saving
Posted on 2009-04-02
I have a php that will be running for a couple minutes. I need to update a variable in the session and continue processing every 20 seconds or so.
This way I can have another script update a screen on the first scripts progress every 20 seconds or so.
I need to close the session without saving, so not to undo any changes that may take place while the script is processing. Then I need to update and save the session to keep the window that the session is open to a minimal.
How do I close an open session without saving it?