I have setup a login form that will set a cookie, the cookie sets fine but I cannot retrieve me cookies for some reason. Here is the code:
setcookie ("userName", $_POST[userName],strtotime("+1 month"));
setcookie ("userPassword", $_POST[userPassword],strtotime("+1 month"));
setcookie ("userID", $row1[userID],strtotime("+1 month"));
Here is how I am trying to retrieve it:
echo "$_COOKIE[userName]";
Like I say, it creates the cookies (3 separate ones), so I know they exist, but won't display them.
Any help would be greatly appreciated.