Hello,
Something is wrong with the way I am making sessions in php scripts... I wrote this sample so you can see how I am doing it, this is how I create the session:
<?php
session_start();
$SESSION["username"] = "brian";
$SESSION["password"] = "brian";
?>
and this is in my check page:
<?php
$username = $SESSION["username"];
$password = $SESSION["password"];
if(!$username || !$password) {
echo "YOU NEED TO LOGIN!";
} else {
echo "WELCOME!";
}
?>
for some reason it always display's the YOU NEED TO LOGIN! error. I can't seem to figure out what is wrong.
Thanks,
Brian