Ive got a session named 'username' that is working fine but I just need a simple script to force a session timeout.
The session script is as follows:
Code: Select all
session_start();
if( ! $_SESSION['username'])
{
header("location:index.php");
}
?>
<?php
$uname = $_SESSION['username'];
Thanks to anyone in advance.
tdsrogers