Seem to have a problem ending a session. I get the following message.
Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at
C:\xitami\xitami-24\app\webpages\logout.php:9) in
C:\xitami\xitami-24\app\webpages\logout.php on line 10
Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
C:\xitami\xitami-24\app\webpages\logout.php:9) in
C:\xitami\xitami-24\app\webpages\logout.php on line 10
You have been logged off, you must re-login to use the system.
Log In
The code is as follows.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Logged Out</title>
</head>
<body>
<?php
session_start();
session_unset();
session_destroy();
//unset($HTTP_SESSION_VARS['valid_user']);
//unset($HTTP_SESSION_VARS['privlevel']);
//session_destroy();
echo '<h3>You have been logged off, you must re-login to use the
system.</h3>';
echo '<a href="log_in.php">Log In</a><br />';
?>
</body>
</html>
I am using Homesite4.5 and saving the file as "pc" format. The
webserver is Xitami.
Help would be appreciated.