Greetings. I am attempting to get this cookie working for a website I
am running. The code to create the cookie is as follows, when I run it
on my localhost it works perfectly, however when uploaded it does not
work. I confirmed the variables ($username, $password) are fine, but
can't get it to work ! Someone please help me !
<?php
setcookie("sitedata_username", $username, time()+3600, "/",
".example.com", 0);
setcookie("sitedata_password", $password, time()+3600, "/",
".example.com", 0);
?>