Sessions and simultaneous download problem
| From: | Kotaro Kikuchi | Date: | Wed, 05 Mar 2003 22:06:48 +0000 |
| Subject: | Sessions and simultaneous download problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138372@lists.php.net to get a copy of this message | ||
I have an corporate intranet that users must login to access and inside it
they
can download files.
The script is like:
session_start -> check user -> fopen -> fread - > print headers -> print
data
It works fine but it allows me download only one file.
The second download is queued until the first has finished.
I was debbung it and found a very interesting behaviour.
The script stops at
<?
session_start(); <------ STOPS HERE
.
.
.
DownloadFunction();
.
.
.
?>
when the second download begins.
Please, help me.