PHP 4.0 Bug #8308 Updated: custom session handlers...

From: Date: Tue, 19 Dec 2000 01:38:05 +0000
Subject: PHP 4.0 Bug #8308 Updated: custom session handlers...
Groups: php.dev 
Request: Send a blank email to php-dev+get-41816@lists.php.net to get a copy of this message
ID: 8308 User Update by: ben@efros.com Status: Closed Bug Type: *Session related Description: custom session handlers... php.ini does not require session.save_handler to be set to 'user' in order to manage user sessions. session_set_save_handler() appears to auto-change the handler to 'user' when called. the resolution to my problem is that the "write" call actually occurs AFTER the output is sent to the webserver. So my debug output was now displaying when echo'd... i had to save to a file instead. This may be something that needs to get added to the official documenation... that the "write" handler doesnt occur real-time, but at the end of handling the script. Previous Comments: --------------------------------------------------------------------------- [2000-12-18 17:16:13] sniper@php.net Please read this manual page carefully: http://www.php.net/manual/function.session-set-save-handler.php --Jani --------------------------------------------------------------------------- [2000-12-18 12:34:30] ben@efros.com Yes the session module is set to "user" (this is done automatically by session_set_save_handler() I believe). Initially executing the script the handler was set to files, but then I let the set_save_handler change it over to the 'user' module. I have also tried to forcefully set the handler to user, but still the "write" handler never seems to be executed. --------------------------------------------------------------------------- [2000-12-18 04:09:47] sniper@php.net Have you set session.save_handler in php.ini to user? --Jani --------------------------------------------------------------------------- [2000-12-17 23:10:48] ben@efros.com session_set_save_handler(.... list of handlers ...); session_name('whatever'); session_start(); $tmpvar='asdf'; session_register('tmpvar'); When I actually run the above code, the open handler is run. The read handler is run, but then the write handler is not executed. Shouldn't it be executed when session_register() is read? --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8308

« previous php.dev (#41816) next »