note 9239 added to session_start
| From: | igor at forefrontconsulting dot co dot uk | Date: | Tue, 24 Oct 2000 13:08:18 +0000 |
| Subject: | note 9239 added to session_start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6906@lists.php.net to get a copy of this message | ||
Has anyone had problems with (what look like) memory leaks with session?
I have a script that reads document information from a database (filetype, original file size,
filename, mime type/subtype etc), uses this info to set the appropriate HTTP headers, and then uses
readfile() to pass the file to stdout.
This works absolutely fine until I add session_start() to the script. If I do this while a session
is alive, all the documents come through garbled. Take the session_start() call out and it's
fine again.
Is this due to session hogging memory and messing up readfile? Or something else? Any clues?
Cheers
Igor.
http://www.php.net/manual/function.session-start.php