setCookie()的问题~~~~~~~~~~~~~~~~~~~~~~~
PHP code1 | <!--Code highlighting produced by Actipro CodeHighlighter (freeware)http:
|
登录后复制
当我运行这个脚本的时候,为什么第一次$_COOKIE是array(0) {},空数组。
必须得刷新一次才能把test1和test2的值刷出来?
------解决方案--------------------要等下一次浏览器把cookie传过来才能调用