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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3855f-269e4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3855f-269e4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?