Home > Backend Development > PHP Tutorial > 浏览器为什么没有cookies ?

浏览器为什么没有cookies ?

PHPz
Release: 2020-06-28 09:36:44
Original
3696 people have browsed it

浏览器为什么没有cookies ?

浏览器为什么没有cookies ?

由于 cookie 是 http(s) 标准的一部分,因此有浏览器厂商可能不会在非 http 协议的会话中保存 cookie 信息,而打开本地文件使用的协议是 file 协议,从而没有 cookie ,因此可能需要跑一个静态文件服务器才能使 cookie 生效。

比较有意思的是,用火狐浏览器打开本地文件,是可以设置 cookie 的。

更多相关技术文章,请访问PHP中文网

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template