【问题标题】:Running script from console sotres cookies [duplicate]从控制台 sotres cookie 运行脚本 [重复]
【发布时间】:2012-06-27 00:04:05
【问题描述】:

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

【问题讨论】:

    标签: php cookies


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        猜你喜欢
        • 2011-05-11
        • 2019-11-25
        • 2010-11-14
        • 2017-10-15
        • 2020-08-23
        • 1970-01-01
        • 1970-01-01
        • 2010-10-26
        • 2020-03-11
        相关资源
        最近更新 更多