ID: 39223
Updated by: [EMAIL PROTECTED]
Reported By: dgk at visskiss dot org
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Fedora
PHP Version: 5.1.6
New Comment:
Disable register_globals.
Previous Comments:
------------------------------------------------------------------------
[2006-10-21 20:58:32] dgk at visskiss dot org
Description:
------------
I am getting session variables with the same value as the
$_GET variables... please advise
Reproduce code:
---------------
session_start();
$sesuid= $_SESSION['uid'];
//check for the _get
if (isset( $_GET['mid'])) {
$uid = $_GET['mid'];
} else if (isset( $_GET['uid'])) {
$uid = $_GET['uid'];
} else {
echo '<p class="error">You have reached this page in error (no model
selected).</p>';
}
$_SESSION['uid']=$sesuid;
Expected result:
----------------
$_GET['uid'] get's the value of $_SES['uid']
Actual result:
--------------
neither $_GET nore $_SES['uid'] should change
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39223&edit=1