How to authenticate AJAX call?

前端 未结 5 1723
無奈伤痛
無奈伤痛 2020-12-21 13:44

I have designed a website which uses AJAX. I have a PHP page named store.php which accepts data sent by POST method and stores in the database.

How do I implement au

5条回答
  •  Happy的楠姐
    2020-12-21 14:40

    Any AJAX Call to a Server Script will still include the session id in the request. If you are implementing sessions in your site, then start the session and you will be able to see session variables for the currently logged in user.

提交回复
热议问题