|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5638 Sessions do not perform "writes" after executing session_set_save_handler()...
Submitted: 2000-07-17 09:08 UTC Modified: 2000-08-17 16:20 UTC
From: grid at ucsd dot edu Assigned:
Status: Closed Package: Session related
PHP Version: 4.0 Latest CVS (17/07/2000) OS: Linux
Private report: No CVE-ID: None
 [2000-07-17 09:08 UTC] grid at ucsd dot edu
I've skimmed through the source code, but cannot find a reason as to why writes do not work after executing session_set_save_handler() with appropriate args when session.save_handler (php.ini) is set to "files".

My scripts are functioning fine if i set session.save_handler to "user".  It only happens when session.save_handler is set to "files" in php.ini, in which case it seems session_set_save_handler() performs a php_alter_ini_entry to change the value of session.save_handler to "user".

I've echoed function names in their appropriate functions to trace how far sessions go after a simple session_start(); $count = 5; session_register("count"); to see if it would write to the database via my functions.  After looking at the output and MySQL logs, I have concluded that it only gets as far as the "read" stage.  It does not seem to attempt to store session variables.

I believe this is a bug, henceforth this submission.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-15 06:48 UTC]
reclassified to session-related
 [2000-08-17 16:20 UTC]
Write/Close are called after the request finishes, hence you don't see any output from these handlers.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 21:01:27 2024 UTC