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

Add a Patch

Pull Requests

Add a Pull Request

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: Mon May 20 21:01:34 2024 UTC