How to handle login in such case that, my frontend is on root of website i.e, http://www.example.com and backend in on subdomain http://admin.example.com. If i loggedin to root or in backend, it will automatically loggedin to other.
Goal: Login to both sites when logged in to one.
read about session here