如何使用 PHP 或 JS 使用 HttpOnly 删除 Cookie
2022-08-30 13:57:14
我有一个包含这些参数的 cookie:
Name: workgroup_session_id
Content: ""
Domain: agrobman1.tsi.lan
Path: /
Send for: Any kind of connection
Accessible to script: No (HttpOnly)
Created: Wednesday, November 4, 2015 at 9:31:58 AM
Expires: When the browsing session ends
我尝试使用以下代码使用PHP删除cookie:
setcookie("workgroup_session_id", "\"\"", time() - 3600, "/", "agrobman1.tsi.lan", false, true);
但我仍然无法删除它。有谁知道如何使用PHP或JS删除这种类型的cookie?