我很难做到这一点。你能帮我么。我正在尝试删除 cookie。这是我的代码
$mydomain = $_SERVER['HTTP_HOST']; //domain name eg. localhost
$mypath = $_SERVER['REQUEST_URI'].'/'; // eg. logistics/core/waybill
delete_cookie('theme', $mydomain,$mypath);
但如果我使用它,我的 delete_cookie 运行良好..
delete_cookie('theme', 'localhost','/logistics/core/waybill/');