so im creating a login page that will have a lifetime of 8 hours upon entering the password what to add in here
session_start();
if (!isset($_SESSION['loggedIn'])) {
$_SESSION['loggedIn'] = false;
}
if (isset($_POST['password'])) {
if (sha1($_POST['password']) == $password) {
$_SESSION['loggedIn'] = true;
ini_set("session.cookie_lifetime","3600000000");
} else {
die ('Incorrect password');
}
}