Home > Backend Development > PHP Tutorial > 如何配置多域名共享cookie

如何配置多域名共享cookie

WBOY
Release: 2016-06-06 20:36:43
Original
1394 people have browsed it

如题~
php。服务器里要如何配置才能多域名共享一个cookie
大家都保持登陆和会话

回复内容:

如题~
php。服务器里要如何配置才能多域名共享一个cookie
大家都保持登陆和会话

1、所有子域都可以共享主域的域名;
2、如果是主域不同的话你可以试试p3p协议写入

只能使用.xx.com 可以在 a.xx.com,b.xx.com中使用,否者只能使用js来达到目的,如果浏览器限制了外域的还是不行的

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template