Netscape HTTP Cookie File php程序中用curl保存的cookie文件格式

本文详细介绍了Cookie的基本属性,包括域名、路径、安全性等,并通过实例展示了如何设置这些属性。了解这些内容有助于更好地管理和使用Cookie。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

domain - The domain that created AND that can read the variable.
flag - A TRUE/FALSE value indicating if all machines within a given domain can access the variable. This value is set automatically by the browser, depending on the value you set for domain.
path - The path within the domain that the variable is valid for.
secure - A TRUE/FALSE value indicating if a secure connection with the domain is needed to access the variable.
expiration - The UNIX time that the variable will expire on. UNIX time is defined as the number of seconds since Jan 1, 1970 00:00:00 GMT.
name - The name of the variable.

value - The value of the variable.

(域名,true,path,false,过期时间,cookie名,cookie值)



.taobao.com TRUE / FALSE 0 v 0
#HttpOnly_.taobao.com TRUE / FALSE 0 cookie2 2ca16f321117f92881d88fa8e7bd0b5d
.taobao.com TRUE / FALSE 1454210452 t e64bcc630eff8acb5800d8aeb8f69a4e


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值