#22069 [Opn->Bgs]: $_GET==$_SESSION
| From: | nicos@php.net | Date: | Wed, 05 Feb 2003 13:47:25 +0000 |
| Subject: | #22069 [Opn->Bgs]: $_GET==$_SESSION | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32184@lists.php.net to get a copy of this message | ||
ID: 22069
Updated by: nicos@php.net
Reported By: me@paodj.net
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Win XP
PHP Version: 4.3.0
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Yes, when globals are on, $_GET $_POST $_FILES $_SESSION $_COOKIE are
the same global variable.
Previous Comments:
------------------------------------------------------------------------
[2003-02-05 07:14:32] me@paodj.net
My ver of php is 4.3.0 RC 3, not RC 2
------------------------------------------------------------------------
[2003-02-05 06:54:05] me@paodj.net
<?
session_start();
$_GET["username"]="admin";
$_SESSION["username"]="paodj";
echo $_GET["username"]; //Return "admin"
echo $_SESSION["username"]; //Return "admin", not "paodj"
?>
Php 4.3.0 RC 2, Apache 2, XP with register.globals = ON
if register.globals = OFF, it's ok.
My english is not very well ;)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22069&edit=1