Jump to content

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.