Does Magento 2 allow JavaScript session storage?

Description: Actually, I want to store data inside the session of JS and utilize it in other phtml files which are actually replacing the previous one. For example, I have phtml1 and phtml2, I am replacing phtml1 by phtml2 but I want to use some value from phtml1 in phtml2 for which I am using JAVASCRIPT session.

1 Answer 1


Yes, session storage is nothing to do with Magento as it is core browser functionality.


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.