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 [EMAIL PROTECTED]

zzzzz


-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to