我有一个wordpress页面,该页面的文本编辑器部分包含以下代码:
This page creates a cookie and houses a etst link that is only accessible to the holder of the cookie.
Test Link (authentication required).
Syntax:
<span style="color: #444444;">setcookie(name, value, expire, path, domain);</span>
<?php setcookie(accesscookie, testing1234, time()+86400, /, foo.example.com); ?>
当我导航到该页面时,它不会创建新的cookie。有人能告诉我我在制作饼干时做错了什么吗?