Cookie in iPhone


if ( isset($_COOKIE['myCookie']) )
{ echo $_COOKIE['myCookie'] ;}
{setcookie("myCookie", 1, time()+10);

echo "myCookie is not burn." ;}

I have the code above in cookie.

It works with major browsers, even Safari.
But it won’t work with iPhone.

How can I burn a cookie for iPhone browsing?

You need to specify the fourth argument of setcookie for the path on the server from where the cookie will be available. Use ‘/’ if you want it available from the entire domain.

Go your iPhone setting feature then you select a safari where you can see clear cookies button then press it after that it shows the confirmation message like clear cookies or cancel then your cookies will remove.