First I want to thank you for this tutorial. Just what I was looking for!
Everything is working fine, but I'm trying to figure out how to make a logout button? I've done the following:
I've created a logout.php which the logout button is refering to:
$_SESSION = array();
$login_page = "index.php";
But when I open logout.php the following error appears:
Warning: session_destroy(): Trying to destroy uninitialized session in /home/jesse/www/sub/supplytool/logout.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /home/jesse/www/sub/supplytool/logout.php:3) in /home/jesse/www/sub/supplytool/logout.php on line 5
Could someone please help me out? Thanks in advance...