I am working with Advanced Template of Yii framework 2.0. As we already know, There are the backend package and the frontend package separated from each other. I put the backend application in a subdomain and frontend in the main domain. Both packages use their own config file and share the same common/config/main.php file.
When I log in to the frontend, I am not automatically logged in to the backend which lives in the subdomain. How can I do to make user being logged in to the backend automatically after logging in to the frontend successfully?