There is the application I built today which required to send data between JavaScript and PHP. Therefore, instead of sending AJAX request everytime data has changed, I decided to set cookies from JS and use PHP to retrieve the cookies when needed.
There is the application I built today which required to send data between JavaScript and PHP. Therefore, instead of sending AJAX request everytime data has changed, I decided to set cookies from JS and use PHP to retrieve the cookies when needed.