I've been trying to figure out why my code isn't working on my PC at home using XAMPP 1.8.2 while at work I've been using 1.7.2. I get the following error
Fatal error: Call to undefined function session_is_registered() in C:\xampp\htdocs\loginscript\session1.php on line 5
What I have on line 5.
if(!session_is_registered(username)){
header("location:index.php");
}
I would imagine it having to do something with pHp version? Cheers
A user has requested to see my code..
<?php
session_start()
//--- Authenticate code begins here ---
//checks if the login session is true
if(!session_is_registered(username));{
header("location:index.php");
}
$username = $_SESSION['username'];
// --- Authenticate code ends here ---
include ('header.php'); ?>