hi. in my first page i have this code
session_start();
$_SESSION['user']=$username;
then on the next page, i tried to check the existence of the content of the said session variable with the following code:
if(empty($_SESSION['user'])) {
echo "you are not authorized to view this page";
}
what could have been the problem? thanks.