【问题标题】:How do I read or write a cookie in php using gwan? [closed]如何使用 gwan 在 php 中读取或写入 cookie? [关闭]
【发布时间】:2013-05-08 18:11:42
【问题描述】:

如何使用 gwan 在 php 中读取或写入 cookie? 我尝试使用 setcookie,但出现的唯一变量是 argv 中的 get 和 post。

【问题讨论】:

标签: php cookies g-wan


【解决方案1】:
char cookies[] = "Cookie: blah\r\n" // add a cookie in the response

http_header(HEAD_ADD, cookies, sizeof(cookies) - 1, argv);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-21
    • 1970-01-01
    • 2013-01-04
    • 2012-03-31
    相关资源
    最近更新 更多