php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14025 register_globals=off doen't fill $HTTP_SESSION_VARS
Submitted: 2001-11-12 03:34 UTC Modified: 2001-11-24 20:12 UTC
From: dad at seafoodexport dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.6 OS: Windows 2000
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: dad at seafoodexport dot com
New email:
PHP Version: OS:

 

 [2001-11-12 03:34 UTC] dad at seafoodexport dot com
When I turn off the register_globals parameter in php.ini, php seems to loose session tracking.
In the example below, the next page presents nothing except if I turn on the register_globals parameter.

//--- first page
<?php
  session_start();
 
  $toto=2;
  session_register('toto');
?>
<a href="next.php">next</a>

//--- next page
<?php
  session_start();

  echo $HTTP_SESSION_VARS['toto'];
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-24 20:12 UTC] sniper@php.net
Some problems regarding this were fixed in latest CVS.

Also, RTFM:
http://www.php.net/manual/en/ref.session.php

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Sep 17 03:01:27 2024 UTC