jamesxg1 Posted April 18, 2009 Share Posted April 18, 2009 <?php session_start(); ini_set('display_errors', 1); error_reporting(E_ALL); include 'Database/Connection.php'; include 'Database/Settings.php'; ?> <html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="CoreFiles/css/style.css" /> <title><?php print $companytitle ?> - Logout</title> </head> <body> <div align="center"></div> <?php if (@$_GET['logout'] == 'Site') { print "<p><div align=\"center\">You are now Logged out!<br>Returning to Login page</div></p>"; $userid = $_SESSION['userid']; $check = sprintf("SELECT * FROM `members` WHERE userid = '$userid'"); $ress = mysql_query($check); while ($check = mysql_fetch_assoc($ress)) { $loggedin = mysql_real_escape_string($check['loggedin']); } if ($loggedin == 'Y') { $login = mysql_query("UPDATE `members` SET loggedin ='N' WHERE userid = '$userid'") or die(mysql_error()); session_unset(); session_destroy(); } header ('Location: Login.php?login=Site'); } if (@$_GET['logout'] == 'File') { print "<p><div align=\"center\">You are now Logged out!<br>Returning to Login page</div></p>"; session_unset($_SESSION['username']); session_unset($_SESSION['filename']); session_unset($_SESSION['owner']); session_unset($_SESSION['dir']); session_destroy($_SESSION['username']); session_destroy($_SESSION['filename']); session_destroy($_SESSION['owner']); session_destroy($_SESSION['dir']); header('Location: Login.php?login=File'); } ?> </body> </html> cant send headers Link to comment https://forums.phpfreaks.com/topic/154615-solved-cannot-send-headers/ Share on other sites More sharing options...
jamesxg1 Posted April 18, 2009 Author Share Posted April 18, 2009 anyone ? Link to comment https://forums.phpfreaks.com/topic/154615-solved-cannot-send-headers/#findComment-813031 Share on other sites More sharing options...
Mchl Posted April 18, 2009 Share Posted April 18, 2009 http://www.phpfreaks.com/forums/index.php/topic,37442.0.html Link to comment https://forums.phpfreaks.com/topic/154615-solved-cannot-send-headers/#findComment-813032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.