Before and after the end of the visit, the acquisition is less than the value of the session

Yesterday another local project, the front-end access interface via ajax, but the value of the session can not be obtained, the scene I have problems as follows

After a session in the interface by setting the value to jump to a html page, a page and then access another interface via ajax, but this interface can not get to the value of the session, looking for a long time to find the cause: the interface is accessed through 127.0. 0.1, ip access, but html pages call interface is accessible via localhost, so I can not get, need to change 127.0.0.1

1, to confirm whether the session setter normal

2, confirmed under the same domain name

 

Published 27 original articles · won praise 12 · views 50000 +

Guess you like

Origin blog.csdn.net/baidu_38226233/article/details/86351557