两个网站如果要用redis共享SESSION的话,那么这两个网站的域名必须这样配置吗?
为情所困
为情所困 2017-04-25 09:02:43
0
3
537

两个网站如果要用redis共享SESSION的话,那么这两个网站的域名必须这样配置吗?

比如 www.test.com 另外一个是 test.com的,必须采用这样的域名吗?
要让 .test.com的cookie 同时让两个网站能读取,这样理解对吧

为情所困
为情所困

reply all (3)
習慣沉默

No need, that is required for use in js

    为情所困

    Shared sessions must have the same top-level domain name

      阿神

      Saving sessions in redis only changes the medium for storing sessions, and has nothing to do with the domain name.

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!