php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: grid at ucsd dot edu
New email:
PHP Version: OS:

 

 [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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-15 06:48 UTC] stas@php.net
reclassified to session-related
 [2000-08-17 16:20 UTC] sas@php.net
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: Tue Apr 16 17:01:30 2024 UTC