在 PHP 的手册里, 有这段话, 至于为什么这样, 还是没说 :(
Cookies will not become visible until the next loading of a page that the cookie should be visible for.
To test if a cookie was successfully set, check for the cookie on a next loading page before the cookie expires.
Expire time is set via the expire parameter.
------------------------------------------------------------------------------
博客提到在PHP手册中,Cookies要到下一次加载其应可见的页面时才会显示。若要测试Cookies是否成功设置,需在其过期前的下一个加载页面进行检查,过期时间可通过expire参数设置。
2万+

被折叠的 条评论
为什么被折叠?



