I created a website having user-registration system and invited my friend to join it. I gave him the link of
http://mydomain.com but now after reading this and this, I want to shift to
But there's a problem. I saw that my browser is storing separate passwords for
www.mydomain.com. So in my friend's browser his password must have been stored for
no-www. That means after I shift to
www and next time he opens the login page, his browser wouldn't auto-fill the username and password fields and there will also be an extra entry (of
no-www) in his browser's database of stored passwords.
Can this be avoided? Can I do something that will convey to browsers that
mydomain.com are the same website? I already have a CNAME record for
www pointing to
mydomain.com but it seems that search engines consider CNAME as alias but browsers consider them as different websites, I don't know why.