News for hackers. Stuff that matters.
Re:Ask HN: www.site.com or site.com? by tnorthcutt on Wednesday September 22, 2010 @09:18PM (#1718180)
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/

"Basically you should always use www if you're planning to use any other sub-domains and you want them cookie-free."

Re:Ask HN: www.site.com or site.com? by jpcx01 on Thursday September 23, 2010 @04:32AM (#1718970)
You get to set the domain when setting cookies so its not a huge issue either way.
Re:Ask HN: www.site.com or site.com? by underdesign on Thursday September 23, 2010 @01:28PM (#1720447)
Usually, but some browsers won't accept forged cookies. It'll only accept cookies from the domain it requested from.