ASPNETDB login control not logging user into "www.domain.com" when user is at "domain.com"
Posted on 2010-03-29
I'm using the ASPNETDB user database in visual studio 2005 with login controls to log users into their accounts, generally works pretty flawlessly out of the back with some click and drags.
the problem i'm having is that when a user is at my site via THIS URL "http://domain.com" they only get logged in (cookies) to that exact domain. the user can then travel around "http://domain.com" endlessly while remaining logged in.
however if the user then adds a "www." for an equivalent of "http://www.domain.com" they are suddenly not logged in anymore. it's very clear that my login, for whatever reason, is making a distinction between the two.
how can i stop this? it's very annoying.
thanks in advance for any help anyone might provide, i'll make sure to mark the answer