Can't read out the COOKIE

Hello all, can some one help me to understand why my $usr_login is always empty? login infio is in coocke. Here are the cookie:
a%3A4%3A%7Bs%3A5%3A%22login%22%3BN%3Bs%3A10%3A%22priv_admin%22%3BN%3Bs%3A4%3A%22name%22%3BN%3Bs%3A5%3A%22email%22%3BN%3B%7D

this is my code.

$cookie = “test”;
if (isset($_COOKIE[$cookie]))
{
$data = unserialize($_COOKIE[$cookie]);
if (isset($data[‘login’]) && !empty($data[‘login’]))
{
$usr_login = $data[‘login’];
}
sc_validate_success();
}

The variable [usr_login] is Global. You don’t need save it into any cookies.

it doesn’t matter if its global or not for the problem. I changed the code.