Put your login system on login.domain.com call your login classes in any page, including then with php include once you'll also need a cookie to save the login state, so you do the same thing. put the session cookie on your login subdomain and require it