ID: 22069 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] My ver of php is 4.3.0 RC 3, not RC 2 ------------------------------------------------------------------------ [2003-02-05 06:54:05] [EMAIL PROTECTED] <? 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