<?php
session_start();
error_reporting(0);
$logout = $_GET['logout']; 

if($logout<>null){ 
session_unset();
session_destroy();
?>
<meta http-equiv="refresh" content="0;  url='https://stok.raaya.my.id/login/login.php'" />
<?php	
}else{

session_unset();
session_destroy();
header("Location =login.php");
}

if($logout==null){

session_unset();
session_destroy();
?>
<meta http-equiv="refresh" content="0;  url='https://stok.raaya.my.id/login/login.php'" />	
<?php
}
?>

