setcookie to an empty value not working

前端 未结 5 2088
天涯浪人
天涯浪人 2020-12-21 06:46

i have this code im trying to do for a type of cache system so it remembers the city the user has selected. if the user has selected a city it stores it in sessions and cook

5条回答
  •  情歌与酒
    2020-12-21 07:25

    You can't set a cookie to most falsy values to indicate falseness of a trit cookie. Only '0' will work. Use that.

提交回复
热议问题