Question: can php access local storage?
Answer: LocalStorage is stored locally, aka on the clients computer. Since your PHP script would run on the server, it is not possible to directly retrieve the value from LocalStorage. ... If you are willing to use a little JavaScript and some AJAX, you can send LocalStorage data to a PHP script and use it as a variable.