Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Tony Marston
July 16, 2005, 8:21 am
rate this thread
- you are using a custom session handler to write all session data to the
- you use a shared resource for the database connection (i.e. after
connecting to the database to read the session data you use the same
connection to write to the database).
The problem appears to be that the order of events when a script terminates
has been altered so that it releases all resources before writing out the
session data. This means that the database connection resource is no longer
available which results in a "couldn't fetch mysqli" error.
I have found that putting an explicit session_write_close() at the end of my
script cures the problem.
Check it out at http://bugs.php.net/bug.php?id=33635