I am trying to set a cookie for logged in when someone logged into my website. Below is my script:
Code removed
This is the error i get:
Warning: Cannot modify header information - headers already sent by (output started at /home/project/public_html/login.php:14) in /home/project/public_html/login.php on line 15
What should I do to fix this?