Subdomain can't access cookie of primary domain

by realPro   Last Updated July 18, 2015 13:01 PM

I have a system at

When users access the system a cookie is being set using a primary domain.

cookie = new cookie("myCookie"); cookie.Domain = "";

For some reason now I see that the users have 2 cookies:

1) myCookie for domain

2) myCookie for domain

The system was working since the beginning with the cookie and then something happened that caused a new cookie to get created.

The question is what caused the new cookie to get created?

The problem gets even more complicated because currently the problem is gone and the cookie is not being created any more, so I can't debug the system and understand why the cookie is created. I am left with users that have both cookies set and I need to understand what are the conditions that can case the second cookie to get created instead of using the primary domain cookie as usual.

Tags : cookie

Related Questions

Wordpress site and cookies: Browser dependence?

Updated May 19, 2018 05:04 AM

Cookie consent overlay - Does it affect SEO?

Updated February 27, 2019 17:04 PM