php setcookie not working with ajax call

前端 未结 2 1249
萌比男神i
萌比男神i 2020-12-06 17:22

I have a page, test.php, with the following code:


    
        
2条回答
  •  自闭症患者
    2020-12-06 17:49

    I think you should look into the path parameter of the setcookie. Set it to "/" , so that it is accessible from across all directories/pages of the site.

提交回复
热议问题