session_set_save_handler()
| From: | mark kimsal | Date: | Wed, 12 Apr 2000 17:56:34 +0000 |
| Subject: | session_set_save_handler() | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13461@lists.php.net to get a copy of this message | ||
Okay, I've come to the conclusion that you cannot print or echo things
from within the write and close functions that you set with
session_set_save_handler(). Can anyone else confirm this? Read and
Open work, don't know about destroy or gc. All the functions work and
keep track of sessions properly, but adding a simple echo "I read from
the database < br >\n"; to the write function will disturb the
functionality of the page the first time it is accessed after
uploading. Subsequent requests will just not process the echo or print
statement. Here is the source code if you want to double check me.
http://tapinternet.com/~mark/phpsess.src