On Thu, Apr 10, 2008 at 4:29 PM, tedd <tedd.sperling@xxxxxxxxx> wrote: > Hi gang: > > I'm stumped and in need of some expert explanation. > > I have prepared two demos (showing code) for your enjoyment: > > [1] http://www.webbytedd.com/x/index.php > [2] http://sperling.com/x/index.php > > Both of these demos have the exact same code; and are on the same server; > with exactly the same php-info -- so, why do they behave differently re > sessions? > > Note that [1] will retain the session values throughout the entire > session, while [2] does not and loses session values. as a sanity check have you dumped out the contents of the session after writing to it on [2] ? eg. <?php // .... $_SESSION['q6'] = ( isset($_SESSION['q6']) ? $_SESSION['q6'] : 0); $_SESSION['q7'] = ( isset($_SESSION['q7']) ? $_SESSION['q7'] : 0); $_SESSION['q8'] = ( isset($_SESSION['q8']) ? $_SESSION['q8'] : 0); $_SESSION['q9'] = ( isset($_SESSION['q9']) ? $_SESSION['q9'] : 0); var_dump($_SESSION); ?> also, doubtful or id assume youd mention it; but do you have .htaccess on either of the sites? you might just dump out the session component of the php config on each site to ensure theyre the same. -nathan