I created a simple login based on PHP only. I wanted to combine them with a code that automatically logout the user after 10 minutes, but probably something I broke down.
<?php
session_start();
if(!isset($_SESSION['simple_login'])){
header("Location: index.php");
exit();
}
$idletime=600;
if (time()-$_SESSION['simple_login']>$idletime){
session_destroy();
session_unset();
}else{
$_SESSION['simple_login']=time();
}
//on session creation
$_SESSION['simple_login']=time();
?>