I am trying to set cookie from client side.
when I set cookie on webapp https://360.thesolarlabs.com/ for the domain .thesolarlabs.com
like 'arka=test;domain=.thesolarlabs.com;path=/'
, cookie is set.
But when I do the same on webapp https://arka360-production-development.azurewebsites.net/
like 'arka=test;domain=.azurewebsites.net;path=/'
for the domain .azurewebsites.net
, cookie is NOT set.
What is the reason ?
EDIT: Found the reason. There is a list of domain names that you cannot create sub domain cookies against. https://learn.microsoft.com/en-us/answers/questions/360645/cannot-set-a-subdomain-friendly-cookie.html Chrome not sharing the cookie between the subdomains