You set a cookie called
urun[...]
. You then test to see if a completely different cookie called
urun
has been set.
The cookie name you pass to
$_COOKIE
needs to precisely match the name you pass to
setcookie
.
If you want to store multiple values in a single cookie, you need to use a single cookie name, and serialize the values into the cookie value. For example:
How do you set a php cookie with multiple values? - Stack Overflow[
^]