php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4840 session_register fails to save variable value if register_globals = Off
Submitted: 2000-06-06 16:51 UTC Modified: 2000-06-13 23:32 UTC
From: serges at globalbeach dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.0 Release OS: RH Linux 6.2
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: serges at globalbeach dot com
New email:
PHP Version: OS:

 

 [2000-06-06 16:51 UTC] serges at globalbeach dot com
If I set register_globals = Off then no then no value is stored for the
variable that I regsitered via session_register()
When I look at the session file, I can see the variable name but there is no value. Changing register_globals = On in php.ini fixes this.

This might be by design but it is not documented anywhere I could find
it, so I wasted some extra time on this.....

Serge

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-13 23:32 UTC] andrei at cvs dot php dot net
With register_globals off, the variables to be stored need
to be in $HTTP_SESSION_VARS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 12 09:01:27 2025 UTC