This code fails to set the cookie. The line that should say it's content just says "Cookie is: " when I reload the page.
I am not sending any output before the cookie and setcookie does return true. What's happening to the cookie?
echo "Cookie is: {$_COOKIES['LoggedInUser']}";
setcookie('LoggedInUser', 'blabla');