title: PHP Session variable not saving (though some are)
body: <p>I have been unable to figure out this problem - it just doesn't make any sense.</p>
  
  <p>The server is PHP 5.2.6 running on Windows NT PDP-IIS 5.2 build 3790.</p>
  
  <p>First I have confirmed sessions ARE working via this test script:</p>
  
  <pre><code>&lt;?php 
  session_start(); 
  if (!isset($_SESSION['counter'])) $_SESSION['counter']=0;
  echo "Counter ".$_SESSION['counter']++.".&lt;br&gt;&lt;a href=".$_SERVER['PHP_SELF']."&gt;reload&lt;/a&gt;"; 
  ?&gt;
  </code></pre>
  
  <p>The counter increments - it works.</p>
  
  <p>My site is using a custom built MVC framework (I wrote it), and I put the last code of the app function to this for testing purposes:</p>
  
  <pre><code>echo session_id(); echo '&lt;pre&gt;'; var_dump($_SESSION); echo '&lt;/pre&gt;';
  session_write_close(); exit();
  </code></pre>
  
  <p>The first few lines of this file are:</p>
  
  <pre><code>&lt;?php
  error_reporting(E_ALL);
  ini_set('display_errors', '1');
  session_start();
  </code></pre>
  
  <p>The session dumps and looks as expected.  Now I go to the server and open up the session file - and the result appears to depend on what browser I'm using.  For Chrome and Safari, the session file was empty.  For Opera and IE8 the session file looked fine.  I'll get to FireFox in a minute - but at this point FireFox appeared fine.</p>
  
  <p>So for testing purposes immediately following session_start() I added the following lines:</p>
  
  <pre><code>$_SESSION['bogus'] = -5;
  $_SESSION['test'] = 'other';
  </code></pre>
  
  <p>I closed my browsers and tried the site again so I could be sure I had a new session.  Again Opera and IE8 session files appeared fine.  Both Chrome and Safari had the 'bogus' and 'test' values, but my other SESSION value was missing.  FireFox at first had the same problem as Chrome and Safari at this point - but upon refreshing the page, the rest of the session showed up.  Refreshing did not help Chrome or Safari.</p>
  
  <p>Here is what the var_dump looks like at this point:</p>
  
  <pre><code>array(3) {
    ["bogus"]=&gt;
    int(-5)
    ["test"]=&gt;
    string(5) "other"
    ["saved_form"]=&gt;
    array(1) {
      ["dgvSJM"]=&gt;
      array(4) {
        ["method"]=&gt;
        string(4) "post"
        ["processor"]=&gt;
        string(0) ""
        ["formid"]=&gt;
        string(10) "searchForm"
        ["fields"]=&gt;
        array(2) {
          ["searchTerm"]=&gt;
          array(5) {
            ["label"]=&gt;
            string(10) "SearchTerm"
            ["type"]=&gt;
            string(6) "search"
            ["required"]=&gt;
            bool(false)
            ["multiple"]=&gt;
            bool(false)
            ["selectempty"]=&gt;
            string(6) "B5BMXw"
          }
          ["formInput_0"]=&gt;
          array(5) {
            ["label"]=&gt;
            string(0) ""
            ["type"]=&gt;
            string(6) "submit"
            ["required"]=&gt;
            bool(false)
            ["multiple"]=&gt;
            bool(false)
            ["selectempty"]=&gt;
            string(6) "TkZUfo"
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>I created a different website with a different subdomain, and copied my code exactly over - and it works fine 'saved_form' shows up perfectly in the session files.  So I tried deleting the original website and recreating it - didn't help the problem.</p>
  
  <p>Anyone know what is going on and/or how I can fix it?</p>
  
  <p>Thanks.</p>