Hello!

The task is to send a person to the other (to the subdomain) when the person first visits the site, so that he can return later. I understand that you need to do business with CASH.

I try this:

if (!isset($HTTP_COOKIE_VARS["red"])) { setcookie("red", "yes", time()+60*60); header ("Location: http://поддомен.домен.ru/"); } 

Does not work.

  • @KoVaLsKy, To format the code, select it with the mouse and click on the 101010 button of the editor. - Deleted

1 answer 1

Try using $ _COOKIE instead of $ HTTP_COOKIE_VARS

  • Yes. helped Thanks - KoVaLsKy
  • KoVaLsKy, then click the check mark to the left of the answer. =) - ling