Before, the front-end page and interface were in the same directory on the server
They were all accessed using IP
After that, the front-end page had a domain name and was no longer accessed by IP. The interface was still accessed by IP
Then cross-domain and SESSION loss problems occurred?
Please tell me how to deal with it?
Before, the front-end page and interface were in the same directory on the server
They were all accessed using IP
After that, the front-end page had a domain name and was no longer accessed by IP. The interface was still accessed by IP
Then cross-domain and SESSION loss problems occurred?
Please tell me how to deal with it?
The simple and effective way is to assign a domain name of the same domain to your interface
Of course there is a way to pass the session id through the URL, but the compatibility of this method is really poor
Exceptionally important! ! Why does the interface need Session! ?
For interfaces, token verification is generally used
Of course, PHP has a session solution. I have to get off work and will talk about it tomorrow