newbie BASIC sessions...

From: Date: Wed, 26 Feb 2003 00:16:01 +0000
Subject: newbie BASIC sessions...
Groups: php.windows 
Request: Send a blank email to php-windows+get-18706@lists.php.net to get a copy of this message
okay, i'm stumped as heck. i cant seem to get it this to work. using win2k, apache 1.3.x, php4.3.0, registers_globals OFF. S1.PHP: <?php session_start(); //$userid = "blow"; //session_register ('userid'); $_session['userid']="joe"; echo (' <A HREF="s2.php">s1</A></P>'); ?> S2.PHP: <?php session_start(); if (!session_is_registered ("userid")) { echo ("not registered"); } else { if (!isset($_session['userid'])) {echo "userid not set";} else {
    echo ($_session['userid']." is the NAME");
    session_unregister ('userid');
} } ?> result is "userid not set" each time. am i missing something so basic here? i've read through the RTFMs, various web sites describing sessions, etc... thanks... -- Leo G. Divinagracia III ldivinag@csuhayward.edu zzzzz

« previous php.windows (#18706) next »