I need to pass the value of a variable from one Observer that monitoring the cms_controller_router_match_before event to an Observer that monitoring the cms_page_render event. How can this be done without using Session Manager?

2 Answers 2


Magento 2 Registry & Register are used to store and retrieve data.

Link : https://www.mageplaza.com/devdocs/magento-2-registry-register.html#how-to-get-and-set-custom-attribute-in-registry--register


Magento with cache can also be used to store and retrieve data.

Reference: https://inchoo.net/magento-2/cache/how-to-save-custom-data-cache-magento-2/

Your Answer

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

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