Re: session/header problem (warning:newbie with sessions)
| From: | Ryan A | Date: | Sat, 17 May 2003 18:59:19 +0000 |
| Subject: | Re: session/header problem (warning:newbie with sessions) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-148039@lists.php.net to get a copy of this message | ||
Thanks guys but now have a new problem with sessions that has been driving
me nuts for over an hour.
heres my code (this is the second page):
******************************************************
<?php
session_start();
header("Cache-control: private"); //IE 6 Fix
error_reporting (E_ALL);
include_once("configbwh.php");
if(session_is_registered('user')){
echo "The session is still registered.";
} else {
header("Location: co.details.php");
exit;
}
?>
<? if(isset($_SESSION['user']))
{
echo $_SESSION['user'];
}
else
{print("asdf");}
?>
blah<? echo $_SESSION['pass']; ?>blah
*******************************************************
the above always outputs :
The session is still registered.asdfblahblah
and never the "user" or "pass"
Please help.
Thanks,
-Ryan