Проблема с получением $_COOKIE

Antrekot

Новичок
Проблема с получением $_COOKIE

Делаю
PHP:
setcookie('email',     '[email protected]',      3600, '/', '.' . site.ru, 0, true);
После этого сразу хочу посмотреть что там хранится.
PHP:
echo $_COOKIE['email']
Выдает null.

При этом эту переменную видит phpinfo();

registre_global у меня отключен.

Скажите плиз в чем может быть дело? куда копать?
 

Antrekot

Новичок
Пробовал вывести на следующей странице, после перезагрузки.
Та же ситуация
 

Mr_Max

Первый класс. Зимние каникулы ^_^
Команда форума
phpfaq.ru/debug
скорее всего потом
phpfaq.ru/headers

-~{}~ 24.12.09 20:37:

setcookie('email', '[email protected]', 3600, '/', '.' . site.ru, 0, true);
И что за бред у тебя написан?

-~{}~ 24.12.09 20:38:

The time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch. In other words, you'll most likely set this with the time() function plus the number of seconds before you want it to expire. Or you might use mktime(). time()+60*60*24*30 will set the cookie to expire in 30 days. If set to 0, or omitted, the cookie will expire at the end of the session (when the browser closes).

-~{}~ 24.12.09 20:39:

setcookie("TestCookie", $value, time()+3600, "/~rasmus/", ".example.com", 1);
 
Сверху