This is whats on the logout.php page:
session_start();
session_destroy();
$message = "Successfully logged out";
include("Login.inc");
exit();
?>
This seems to work fine. Then when i go to a page that your meant to be logged in to to go to. e.g. Welcome.php
It as has this at the top of the page:
session_start();
if (@$_SESSION['auth'] != "yes")
{
header("Location Login.php");
exit();
}
Because all the sessions have just being destroyed $_SESSION['auth'] doesnt = yes so it SHOULD header them to Login.php
But instead this shows up on the page:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
2006-10-29
05:46:59
·
6 answers
·
asked by
peter s
1
in
Computers & Internet
➔ Programming & Design