php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9002 User session handler doesn't work with register_globals set "Off"
Submitted: 2001-01-30 09:27 UTC Modified: 2001-06-14 23:19 UTC
From: andre at promediasystems dot de Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.4pl1 OS: Linux 2.2.16
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andre at promediasystems dot de
New email:
PHP Version: OS:

 

 [2001-01-30 09:27 UTC] andre at promediasystems dot de
Set the following variables in php.ini:
register_globals = Off
session.save_handler = user

Then register a user handler in your php script with
session_set_save_handler(...);

Trace the calls of the handler functions in a log file and you will see:

The user defined session handlerfunction for WRITING the session will never be called!

With register_globals=On the same works!

Andre

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-14 23:19 UTC] sniper@php.net
This should be fixed in PHP 4.0.6, please try the
latest RC from:

http://www.php.net/~andi/php-4.0.6RC3.tar.gz

(if above link doesn't work, try changing RC3 to RC4)


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 08:01:27 2025 UTC