[RESOLVED] Session problem php5
hi all,
i have a problem of session in php5
in my first page i have this code
Code:
<?php
session_start();
//Some code here
$_session['User_Logged']="Yes";
?>
and in my other page i want to read the session variable to know if the user is logged in or not
Code:
<?php
session_start();
if($_session['User_Logged']!="Yes")
{
echo "You are not logged in."
exit();
}
//Some Actual Working HERE
?>
but i get an error in the red line above
Undefine Index User_Logged
this code has worked fine for me in php4 before
:( pls help