I am trying to set cookie for my website to block some countries.
I am setting cookie something like this.
And this is how I am trying to print the cookie.
$mycookie = $_COOKIE["mynewblockingcookie"];
the problem is...when I printing cookie in admin folder/panle...its working and showing value 1.
But when I tried to print it on my root folder (User End), it shows nothing.
Please let me know where I mistook? I checked the cookie in browser setting....its showing, its printing in admin section, but it shows nothing on user end.
Thanks in advance for your appreciable help.