search

Home  >  Q&A  >  body text

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

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

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

为情所困为情所困2851 days ago650

reply all(3)I'll reply

  • 習慣沉默

    習慣沉默2017-04-25 09:04:43

    No need, that is required for use in js

    reply
    0
  • 为情所困

    为情所困2017-04-25 09:04:43

    Shared sessions must have the same top-level domain name

    reply
    0
  • 阿神

    阿神2017-04-25 09:04:43

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

    reply
    0
  • Cancelreply