Posting Cookies Help

Hello,

Previously, I had had some logins on my site, and they use to work fine, however, something either changed or got altered and now for the life of me, I can’t seem to get any code to work sigh The code works enough to be connecting with the databases fine, as it can check the user ID and password still, however, it cannot post any cookies and I don’t understand why facepalm

Here’s the code,

else{
	$_POST['ID'] = ($_POST['ID']);
	$hour = time() + 1814400;
	setcookie(ID_novian, $_POST['ID'], $hour);
	setcookie(Key_novian, $_POST['pass'], $hour);

	//then redirect them to C Hub
	header("Location: members.php");
}

Many thanks!

Add this to your .htaccess file

php_flag display_errors on
php_flag output_buffering on 
1 Like

Thank you very much! This seems to have fixed it :sparkles: