I have a simple problem that I cannot seem to sort in 5.4. I have a website login which validates user login with the usual ID and password requirements. What I am truing to do in 5.4 which I successfully achieved in PHP4 is to create a static or session variable to hold a value which signifies authorised so that one sign in will give me a way of authorising access on each page.
I understand session variables are not available in PHP 5.4 so can anybody tell me how I can create a variable on user sign in that will be available from that point on? in PHP4 I created a session variable $authy and on each page I could check the value and allow access or not depending on result
if(@$authy !="1")
{
header("Location: notlog.php");
exit();
}
Please keep answers simple please as the move from PHP4 to 5.4 is proving traumatic to say the least.
I understand session variables are not available in PHP 5.4 so can anybody tell me how I can create a variable on user sign in that will be available from that point on? in PHP4 I created a session variable $authy and on each page I could check the value and allow access or not depending on result
if(@$authy !="1")
{
header("Location: notlog.php");
exit();
}
Please keep answers simple please as the move from PHP4 to 5.4 is proving traumatic to say the least.