RikoGuy
01-05-2007, 02:57 AM
hello everyone today is the first time i've tried using sessions and i'm having some trouble getting it to work for me. i've setup my login script to start and register a session if the login was successful.
After registering the session i print it out to make sure it's working. this is what my code looks like.
session_start();
$sesUser = $uName;
session_register('sesUser');
echo "session registered";
echo $_SESSION['sesUser'];
echo "<br>";
echo session_is_registered('sesUser');
echo "<br>";
echo $PHPSESSID;
$_SESSION['sesUser'] successfully prints it's variable and ..."is_registered" shows the number one (which i'm assuming is "true") but $PHPSESSID yields nothing and when i try to print my session (sesUser) from another page I get nothing... why?!?!
thanks!
eric
After registering the session i print it out to make sure it's working. this is what my code looks like.
session_start();
$sesUser = $uName;
session_register('sesUser');
echo "session registered";
echo $_SESSION['sesUser'];
echo "<br>";
echo session_is_registered('sesUser');
echo "<br>";
echo $PHPSESSID;
$_SESSION['sesUser'] successfully prints it's variable and ..."is_registered" shows the number one (which i'm assuming is "true") but $PHPSESSID yields nothing and when i try to print my session (sesUser) from another page I get nothing... why?!?!
thanks!
eric