php is case sensitive language so use all capital letters for SESSION
if ($_SESSION['LoggedIn'] !=null)
urtrivedi
Nearly a Posting Virtuoso
1,306 posts since Dec 2008
Reputation Points: 257
Solved Threads: 270
try this under your $_SESSION lines:
// this is setting the session as a variable
$color = $_SESSION['color'];
// check if the session is not registered
if($color=="")
{
// echo a message saying it isnt
echo"No session registered with the name color.";
}
// check if the session is registered
if(!$color=="")
{
// echo a message saying it is
echo"The session registered with the name color has a value of $color";
}
gotboots
Junior Poster in Training
54 posts since Jun 2011
Reputation Points: 12
Solved Threads: 4
fnCheckSession(LoggedIn) >>> fnCheckSession('LoggedIn'). Use single quote for string argument.
Zero13
Practically a Master Poster
624 posts since Jan 2009
Reputation Points: 120
Solved Threads: 139