I want to create a login page but I'm stuck on an error. I had more errors but I went through and fixed them all except for this one which still has me lost all day so if anyone can help me I'd appreciate it, thanks.
<?php require_once("includes/header.php"); ?>
<?php
if(!$session->signin())
{
redirect('login.php');
}
?>
these files are all working classes page
<?php
require_once ("config.php");
require_once ("database.php");
require_once ("user.php");
require_once ("functions.php");
require_once ("senssion.php");
?>
I expect to see my login page but it returns
Fatal error: Uncaught Error: Call to undefined function redirect() in