Bug #13521 Updated: "session.save_handler = files" still allows session_set_save_handler to overrid
| From: | yohgaki@php.net | Date: | Thu, 20 Dec 2001 03:49:08 +0000 |
| Subject: | Bug #13521 Updated: "session.save_handler = files" still allows session_set_save_handler to overrid | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74506@lists.php.net to get a copy of this message | ||
ID: 13521
Updated by: yohgaki
Reported By: merrill@missioncriticallinux.com
Old Status: Open
Status: Feedback
Bug Type: Session related
Operating System: Redhat 6.1 Linux
PHP Version: 4.0.6
New Comment:
Please test with 4.1.0 and latest CVS snapshot.
CVS snapshot source can be found
http://snaps.php.net/
(No windows binary)
If you don't have problem with latest CVS snapshot,
you can close your bug report by yourself.
Please report the result. When you update your bug
report, do not forget updating PHP version also.
Thank you
--
Yasuo
Previous Comments:
------------------------------------------------------------------------
[2001-10-02 16:50:38] merrill@missioncriticallinux.com
First update didn't save the OS - it's Redhat 6.1 Linux.
------------------------------------------------------------------------
[2001-10-02 16:48:52] merrill@missioncriticallinux.com
'./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