Why do some cookies have a '.' before the domain?

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-03-23T15:38:54Z Indexed on 2010/03/23 15:43 UTC
Read the original article Hit count: 326

Filed under:
|

Trying to share cookies accross 2 domains in asp.net, for some reason 1 domain has a '.' before the domain, and the other doesn't.

Why is that?

e.g:

.staging.example.com

and

staging.example.com

Is this something to do with how I create the cookie, or a web.config change?

I am not using forms authentication, just creating a cookie manually.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about cookies