3 ms·
It's largely a matter of personal preference, but an important consideration is that using site.com will mean any cookies served from site.com will also be serv
by tnorthcutt 16y ago
It's largely a matter of personal preference, but an important consideration is that using site.com will mean any cookies served from site.com will also be served on any subdomains. For more reading on the subject: http://www.phpied.com/www-vs-no-www-and-cookies/ http://www.phpied.com/www-vs-no-www-and-cookies/
"Basically you should always use www if you're planning to use any other sub-domains and you want them cookie-free."
- jpcx01 16y agoYou get to set the domain when setting cookies so its not a huge issue either way.
- underdesign 16y agoUsually, but some browsers won't accept forged cookies. It'll only accept cookies from the domain it requested from.