For example: {code...}, for example:
Domain Name 1: baidu.com/mobile domain name 2: test.baidu.com/mobile question: which solutions can be used to synchronize SESSION calls between two domains? The more detailed the better? Thank you.
Reply content:
For example:
Domain Name 1: baidu.com/mobile domain name 2: test.baidu.com/mobile question: which solutions can be used to synchronize SESSION calls between two domains? The more detailed the better? Thank you.
Use the sameSession
Storage Methods and storage domains, suchFile Session
Stored in the same directory,Database Session
It is stored in the same database and data table. This will enable two websitesSession
Connect.
Session can be stored on the server in three ways: file format, default format, memory format, and database format. Then, we can solve this problem as long as the session can be saved on both servers. You can store the session in redis.