emanuel 18 Posted December 5, 2016 Share Posted December 5, 2016 Hellow,when i loggout from a itemshop i get this error : Warning: Cannot modify header information - headers already sent by (output started at /home/metindi3/public_html/market/include/functions.php:1) in /home/metindi3/public_html/market/include/functions.php on line 205 this is line 205 from functions.php : function logout() { session_destroy(); unset($_SESSION['id']); [line 205] --> header("Location: index.php?p=login"); } and when i want to loggin i get this error : Warning: Cannot modify header information - headers already sent by (output started at /home/metindi3/public_html/market/include/functions.php:1) in /home/metindi3/public_html/market/include/functions.php on line 81 this is function line 81 : if($userRow['status']=='OK') { $_SESSION['id'] = $userRow['id']; $_SESSION['fingerprint'] = md5($_SERVER['HTTP_USER_AGENT'] . 'x' . $_SERVER['REMOTE_ADDR']); if($shop) header("Location: shop?p=home"); else [line 81] ----> header("Location: index.php?p=home"); return true; i must refresh the page and warning is gone..and everything is ok..some help please ? Thx Link to comment Share on other sites More sharing options...
emanuel 18 Posted December 5, 2016 Author Share Posted December 5, 2016 up Link to comment Share on other sites More sharing options...
emanuel 18 Posted December 6, 2016 Author Share Posted December 6, 2016 up help Link to comment Share on other sites More sharing options...
emanuel 18 Posted December 6, 2016 Author Share Posted December 6, 2016 up help Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now