session_set_save_handler()

From: Date: Wed, 12 Apr 2000 15:34:37 +0000
Subject: session_set_save_handler()
Groups: php.version4 
Request: Send a blank email to php-version4+get-13452@lists.php.net to get a copy of this message
I'm trying to get the example off the php manual about sessions to work. It's the one in which dummy functions that just output text are replaced for the default session functions. The default functions are overriden with session_set_save_handler (open,close,read,write,destroy,gc); When I do this, the close and write functions are never called, so the output that is shown in the example never gets printed. my output: set the handler functions open (/tmp, PHPSESSID) read (c5a5dcd813cb3f7b650d284b03dd865f) session started (open and read called) registered foo (nothing happens) example's output: open (/tmp, PHPSESSID) read (f08b925af0ecb52bdd2de97d95cdbe6b) write (f08b925af0ecb52bdd2de97d95cdbe6b, foo|i:2;) close the code is copied and pasted, with the few syntax corrections added as well as a few comments so that you know where the output _should_ be. Please note that default file handling of sessions works properly. Has anyone successfully integrated a database with php4 session functions? I'm using RC1 on red hat and apache.

« previous php.version4 (#13452) next »