PHP & localStorage;

anon271334 picture anon271334 · Oct 4, 2010 · Viewed 144.2k times · Source

I've searched around for use of localStorage in PHP, as I need to get localStorage data as a $var, in PHP and do stuff in PHP with it. Is this possible?

P.S. If anybody knows any good HTML5 resources, other than what can be easily found on Google, please share.

Answer

Felix Kling picture Felix Kling · Oct 4, 2010

localStorage is something that is kept on the client side. There is no data transmitted to the server side.

You can only get the data with JavaScript and you can send it to the server side with Ajax.