|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13521 "session.save_handler = files" still allows session_set_save_handler to overrid
Submitted: 2001-10-02 16:48 UTC Modified: 2002-01-09 02:09 UTC
From: merrill at missioncriticallinux dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.6 OS: Redhat 6.1 Linux
Private report: No CVE-ID: None
 [2001-10-02 16:48 UTC] merrill at missioncriticallinux dot 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'

We use sessions stored in the database, and so we have this code in our auto_prepend_file:

           session_start(); defines functions sessionOpen, sessionClose, sessionRead, sessionWrite, sessionDestroy, sessionGC, and at the very end of the php code in that file, it does this call:


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?


Hardy Merrill
Mission Critical Linux, Inc.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-02 16:50 UTC] merrill at missioncriticallinux dot com
First update didn't save the OS - it's Redhat 6.1 Linux.
 [2001-12-19 22:49 UTC]
Please test with 4.1.0 and latest CVS snapshot.
CVS snapshot source can be found
(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

 [2002-01-09 02:09 UTC]
No feedback. Closing.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Feb 06 12:03:42 2023 UTC