Keeping PHP session alive during file upload/download
<p>I have a PHP project that transfers large files between the client and server. There are a couple of things I'm wondering about. The first is how do I ensure that the session stays alive, even if the client has a slow internet connection and the upload takes longer than the usual session timeout allows? And then how do I also make sure that if the client gets disconnected or something, that the session dies as expected? Is there any straightforward way to test this, other than transferring a large file, hoping that it takes longer than the usual timeout and then testing <code>isset($_SESSION['var'])</code>? Thanks.</p>
