I’m baffled at how this function behaves now. I have this in my code:

if (!isset($_COOKIE['blah'])) {
    setcookie("blah", uniqid(rand()), time()+3600);

And everytime it gets there a second $_COOKIE['blah'] with different value spawn, crippling my page. Its not what it used to be at all. According to the manual, there’s nothing change except for checking “FALSE”, but this cookie even has string value.

2 hours debugging later, i changed !isset() to empty(), and everything pretty much sunset in the beach again. F*cker!

I also encountered another weird behavior but I forget what and I just need to sleep right now. Until we meet again, lads!

Recommended Articles