Intinya lo Coba skrip dibwah ini bro : login.php
<?php
if ($_POST['submit'] == "Login")
{
//if authentication is successfull
session_start();
$_SESSION['access'] = "yes";
header(Location:access.php);
{
if ($_POST['submit'] == "Log Out")
{
//if the user decides to exit
session_destroy();
}
?>
access.php
<?php
if ($_SESSION['access'] != "yes")
{
header(Location:login.php);
}
?>
Ok Bro
