从控制台sotres cookie运行脚本

时间:2012-06-26 16:01:12

标签: php cookies

我正在从控制台运行php脚本。我看不到任何cookie存储在本地。有谁知道这是否可能?如果是,我应该检查什么?

2 个答案:

答案 0 :(得分:0)

Cookies是一种浏览器功能。您无法在控制台模式下使用它。 (您可以尝试自己实施,请不要)。

答案 1 :(得分:0)

在CLI模式下运行PHP时不使用COOKIES。有关其他详细信息,请参阅此问题:Is it possible to read cookie/session value while executing PHP5 script through command prompt?

相关问题