We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
答案:
Set-Cookie: <cookie-name>=<cookie-value>
<cookie-name>=<cookie-value>
<date>
<non-zero-digit>
<domain-value>
<path-value>
name = name; // 需要设置cookie的值(name不能使用";"和","号),有多个name值时用";"分隔例如:name1=name1;name2=name2;name3=name3 expires; //cookie的有效期限,格式为:expires="Wdy,DD-Mon-YYYY HH:MM:SS" path; //设置cookie支持的路径,如果path是一个路径,则cookie对这个目录下的所有文件及子目录生效,例如:path="/cgi-bin/",如果path是一个文件,则cookie指对这个文件生效,例如:path="/cgi-bin/cookie.cgi" domain; //对cookie生效的域名,例如:domain="gzdzw.51.net" secure; //如果给出此标志,表示cookie只能通过SSL协议的https服务器来传递,cookie的接收是通过设置环境变量HTTP_COOKIE来实现的,CGI程序可以通过检索该变量获取cookie信息
解析:Cookie 相关的 Http 头
有两个 Http 头部和 Cookie 有关:Set-Cookie 和 Cookie
参考
The text was updated successfully, but these errors were encountered:
No branches or pull requests
答案:
Set-Cookie:
<cookie-name>=<cookie-value>
<date>
<non-zero-digit>
<domain-value>
<path-value>
解析:Cookie 相关的 Http 头
有两个 Http 头部和 Cookie 有关:Set-Cookie 和 Cookie
参考
The text was updated successfully, but these errors were encountered: