I am running a website in Yii2 framework i.e. example.com And I have also a Magento shopping website in the same domain i.e. example.com/shop
Now I want to use the user session of Yii2 in Magento so that the user logged-in in Yii2 will be logged-in in Magento.
I have user session in Yii2, but when I print session in Magento it shows different session. I have also tried these:
Session Variable outside magento
Magento Session from external page (same domain)
but I did not get the solution.
P.S. I am new in Magento. Magento version is 1.9.1.1
Is it possible to use external session in Magento? If yes then how?
EDIT My question is different from this question. That question is about accessing Magento session in external file. But I want external session inside Magento.