ID: 39223
User updated by: dgk at visskiss dot org
Reported By: dgk at visskiss dot org
Status: Bogus
Bug Type: Session related
Operating System: Fedora
PHP Version: 5.1.6
New Comment:
please see bug report 39225
Previous Comments:
------------------------------------------------------------------------
[2006-10-21 21:31:35] [EMAIL PROTECTED]
Disable register_globals.
------------------------------------------------------------------------
[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