求教同一个站点两个域名如何实现同步登陆

WBOY
Release: 2016-06-13 12:38:30
Original
1453 people have browsed it

求教同一个站点两个域名怎么实现同步登陆
我只有一个网站,但是绑定了两个域名www.a.com和www.b.com,两个域名都指向网站的顶级目录index.php,使用www.a.com登陆了之后,再去访问www.b.com的时候依然是未登录状态。我想实现用户登陆了a之后,访问b也是登陆的状态,请问如何做到?

注:请不要跟我谈UCenter,我只有一个站,没有论坛等乱七八糟的,我只想跨域共享session或者cookie,求有经验的前辈指点一条明路,节省我走弯路的时间。

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