Catching hell with if's in php?
<p>ok forgive my technique in writing here, but i can't seem to understand why this code recognizes things and then doesn't recognize some other things.</p>

<p>my code:</p>

<pre><code>if (!isset($id)) {
      $_SESSION["logged_in"] = False;
      printf("Could not retrieve records: %s\n", mysqli_error($mysqli));
     if ($_SESSION["logged_in"] = False)
        { echo "session variable is set at False"; }
     if ( $_SESSION["logged_in"] = True)
        { echo "session variable is set at True"; }
  }
</code></pre>

<p>now as I see it, if it enters this bit of code at all, the first thing that happens should be that the variable gets set to "false". elsewhere in some code not shown it gets set to true and that part works fine but when i try to force it into this for a false setting it remains true.. can anyone see why this wouldn't get set to "False" at this point in the execution?</p>
