How do you know that? Does the key "url" exist in the associative array $_COOKIE (try array_key_exists()) or is it just empty?
You should be asking this on a PHP site not this one (although I don't know of a PHP equivalent). If you wrote the code in Perl then maybe you would get lots more help.