Remove a cookie

后端 未结 22 1544
没有蜡笔的小新
没有蜡笔的小新 2020-11-22 16:16

When I want to remove a Cookie I try

unset($_COOKIE[\'hello\']);

I see in my cookie browser from firefox that the cookie still exists. How

22条回答
  •  渐次进展
    2020-11-22 16:43

    If you set the cookie to expire in the past, the browser will remove it. See setcookie() delete example at php.net

提交回复
热议问题