| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2006-10-21 21:31 UTC] tony2001@php.net
  [2006-10-21 21:50 UTC] dgk at visskiss dot org
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 08:00:01 2025 UTC | 
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