You set a cookie called
. You then test to see if a completely different cookie called
has been set.
The cookie name you pass to
needs to precisely match the name you pass to
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