PHP Shared Sessions across Domain

前端 未结 3 1111
花落未央
花落未央 2021-01-05 09:26

I have seen a few answers to this on SOF but most of these are concerned with the use of subdomains, of which none have worked for me. The common one being that the use of

3条回答
  •  梦谈多话
    2021-01-05 10:14

    1. Define a main session server (I do this in combination with memcached)

    2. use Ajax / JSON(P) to request a session from this server, this allows you to share sessions over multiple domains

    3. Reuse this session

提交回复
热议问题