php 泛解析 二级域名 session不同步的有关问题求角

WBOY
Release: 2016-06-13 13:35:41
Original
826 people have browsed it

php 泛解析 二级域名 session不同步的问题求角
从主域名登录的账号,进入二级域名session就没了。。但从二级域名登录的账号可以同步到主域名。。不同的二级域名可以登录不同的账号。。跪求如何解决。。能够不用数据库就尽量不用数据库。。

------解决方案--------------------
session_set_cookie_params 指定phpsessid的作用域

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