Magento_CrossAreaSessions icon indicating copy to clipboard operation
Magento_CrossAreaSessions copied to clipboard

Magento 2 Version

Open SasiKiranK opened this issue 8 years ago • 3 comments

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 avatar May 12 '16 12:05 SasiKiranK

@SasiKiranK I don't know, I haven't investigated how Magento 2 handles sessions yet. If you figure it out let us know!

astorm avatar May 12 '16 16:05 astorm

@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 avatar Jul 06 '16 11:07 SasiKiranK

@SasiKiranK how do you use solution to detect admin user in frontend?

southerncomputer avatar Jul 21 '16 15:07 southerncomputer