How should I login a user to ONLY to their own subdomain from a main domain? (btw, I'm using Yii. Raw PHP ideas would be welcome too, but I'd like Yii compatible ideas)
I've looked at other questions such as this one but they seem to log the user into ALL subdomains. (basically they seem to be basic sso authentication, which is NOT exactly what I want)
Each user in my app has their own subdomain. They visit the main domain website (so no subdomain yet) and then login. In the login process I need to log the user into their subdomain and then redirect them to their subdomain. In other words, I need to transfer their login session from the main domain to their subdomain, but I can't seem to get this working.
I also tried using the CHttpSession class that Yii provides to set session vars and stuff, but that hasn't been working either.
I'd appreciate any help.