How to create logout link
Hi Ray,
There is a problem with the logout page. I have created mine as seen below but when I type the link to dashboard on the address, the dashboard load.
Here is my logout code
<?php
if ("" === "") {
$LogOut = new WA_MySQLi_Auth();
$LogOut->Action = "logout";
$LogOut->Name = "Admin";
$LogOut->Redirect("login.php");
$LogOut->execute();
}
?>
Attached is my logout.php file for your review