Do AJAX requests retain PHP Session info?

前端 未结 8 937
情书的邮戳
情书的邮戳 2020-11-28 18:52

If I had a user logged onto my site, having his id stored in $_SESSION, and from his browser he clicked a \'Save\' button which would make an AJAX request to th

8条回答
  •  醉话见心
    2020-11-28 19:38

    If the PHP file the AJAX requests has a session_start() the session info will be retained. (baring the requests are within the same domain)

提交回复
热议问题