Hi!
I searched the forum for this but coudn't find anything. I want to know why this code isn't working:
That's the only thing in the file. That file is called 'logout.php' and from a javascript function I'm doing a:Code:<?php setcookie('log', ' ', time()-60); include("functions.php"); echo "Wait..."; redirect('login.php'); ?>
It is suppose to clear the cookie but I'm getting the following error:Code:window.location.replace('logout.php');
Warning: Cannot modify header information - headers already sent by
Any ideas?




Reply With Quote