This condition in the current version of the safari on os X does not work and always displays what is after else , in other browsers it works fine

 <? if (!empty($_COOKIE['userCityName'])){ echo $_COOKIE['userCityName']; } else { echo "Иркутск"; } ?> 
  • 3
    PHP server language. It has nothing to do with the browser version - Mihanik71
  • Nevertheless, I can't understand why in other browsers it works as it should - Ivan Bubliy
  • Maybe you are blocking cookies? It happens that the enterprise has not correctly displayed the infrazion sites. And if you work through iframe, then you need to add keys that allow cookies. Maybe for some other reason, cookies in safari are not allowed. - nick_n_a
  • No, I use 3 cookies on my site and work as they should, I filter some of the content and redirects for them, but here the problem is completely cleaned, rewritten, but output as well - Ivan Bubliy
  • how do you install a cookie? - Ordman

0