Cookies giving an error
Posted: Sat Oct 29, 2005 6:12 pm
I have it to were when you update the profile and change the password it will just delete the cookie so you will login again with the new password and it's giving me an error and not expiring the cookie... here is the expire cookie code:
which /dir/ is a valid directory and the one im using and this is the error it's giving me:
Code: Select all
<?PHP
setcookie ('user', '', time()-3600, '/dir/', '', 0);
setcookie ('pass', '', time()-3600, '/dir/', '', 0);
?>line 117 and 118 is the 2 cookie lines... everything besides this does work though, I tried without that code.Warning: Cannot modify header information - headers already sent by (output started at /home/rootbee/public_html/site/dir/profile2.php:5) in /home/rootbee/public_html/site/dir/profile2.php on line 117
Warning: Cannot modify header information - headers already sent by (output started at home/rootbee/public_html/site/dir/profile2.php:5) in /home/rootbee/public_html/site/dir/profile2.php on line 118