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
Magento 2 Registry & Register are used to store and retrieve data.
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/