ID: 13521 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Session related Old Operating System: Operating System: Redhat 6.1 Linux PHP Version: 4.0.6 New Comment:
First update didn't save the OS - it's Redhat 6.1 Linux. Previous Comments: ------------------------------------------------------------------------ [2001-10-02 16:48:52] [EMAIL PROTECTED] './configure' '--prefix=/var/php' '--with-config-file-path=/var/php' '--enable-track-vars' '--with-apxs=/var/apache/bin/apxs' '--with-ftp' '--with-xml' '--with-mcrypt=/var/libmcrypt-2.4.15' '--enable-sigchild' '--with-oci8=/u01/app/oracle/product/8.1.7' '--with-pgsql=/var/postgresql-7.1.3' '--with-mysql=/var/mysql-3.23.41' ---------------------------------------------------- We use sessions stored in the database, and so we have this code in our auto_prepend_file: include_once("session.inc"); session_start(); session.inc defines functions sessionOpen, sessionClose, sessionRead, sessionWrite, sessionDestroy, sessionGC, and at the very end of the php code in that file, it does this call: session_set_save_handler( "sessionOpen", "sessionClose", "sessionRead", "sessionWrite", "sessionDestroy", "sessionGC"); We wanted to change sessions from being saved in the database to being saved in files, and noticed today that even when we set session.save_handler = files in php.ini, the above call to session_set_save_handler seems to still take effect and force sessions to be stored in the database. Here's a quote from the set_session_save_handler documentation: Note: You must set the configuration option session.save_handler to user in your php.ini file for session_set_save_handler() to take effect. Is this a bug in PHP 4.0.6? Thanks. Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13521&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]