How to get custom local storage value in magento2?

I need to get the custom local storage value in php file .

How to do that


  • store value in session than use it.
    – Mahendra
    Commented Apr 13, 2019 at 12:07

1 Answer 1


Custom local storage are stored at client side means in user's browser , you can not access it directly. You need to use ajax call with that info to your server to get into in php file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.