Magento_CrossAreaSessions
Magento_CrossAreaSessions copied to clipboard
Magento 2 Version
Hi
Need Magento 2 Version of this module. I tried copying session file from vendor/magento/module-customer/Model/Session.php and changed the $this->_eventManager->dispatch('new_session_init', ['new_session' => $this]);
But its not working. Do i need to initialize it before any preDispatch/Any Event?
Thank you Sasikiran Kesavan
@SasiKiranK I don't know, I haven't investigated how Magento 2 handles sessions yet. If you figure it out let us know!
@astorm pls find the solution in below url
https://community.magento.com/t5/Programming-Questions/Create-Custom-session-and-Initialize-it-preDispatch/td-p/29504
@SasiKiranK how do you use solution to detect admin user in frontend?