News for hackers. Stuff that matters.
Re:Why use www? by possibilistic on Sunday June 29, 2014 @03:00PM (#7962008)
Use oauth tokens or a similar mechanism to clone session tokens between (sub)domains without leaking them. This is also a great way to provide subdomain permission and expiry scope.

Issue a master session cookie at login.mydomain or account.mydomain. If your user hits a subdomain and is not logged in, forward them there (in the background) and see if you can grant them a redeemable token for the round trip. If so, they can get a cookie issued by the subdomain in exchange for the token when they return.

Re:Why use www? by ecesena on Sunday June 29, 2014 @06:12PM (#7962673)
Thanks. I'm currently using subdomains only for trusted services, but I will definitely look towards this direction.

I guess there is still some tricks when the user lands in a subdomain and needs to be redirected to another, e.g. www -> mobile, but I'll figure out the details :)