How to keep session from being lost when php crosses domains?

ask, how to keep session from being lost when php crosses domains?

Php
Mar.04,2021

session_id is the
sent to the server by cookie via http request by default. Because cookie is the same origin and domain policy, session_id cannot take it across domains.

you can take session_id to GET to pass parameters. Reply keeping can be achieved as long as other domain names have the same session_id.


use a database instead of session

Menu