Hi there,
I Have the following code:
<?
$loginUserName = "Ali";
setcookie ("CkUserName", $loginUserName, time()+3600, "/", ".127.0.0.1",1);
$CkUserName = $HTTP_COOKIE_VARS["CkUserName"];
echo "UserName: $CkUserName";
?>
The cookie set successfully, but I can't retrieve the information from it! (echo is not showing the data from the cookie I set).
Please any help?
I Have the following code:
<?
$loginUserName = "Ali";
setcookie ("CkUserName", $loginUserName, time()+3600, "/", ".127.0.0.1",1);
$CkUserName = $HTTP_COOKIE_VARS["CkUserName"];
echo "UserName: $CkUserName";
?>
The cookie set successfully, but I can't retrieve the information from it! (echo is not showing the data from the cookie I set).
Please any help?