Then you need to check out output of your cookie definition. The syntax you pasted is not correct, it's missing some )
in it. Secondly, you may want to output your values to see what is being returned. URLHelper.GetApplicationUrl()
needs an string input parameter and returns the domain. However you don't have a string input parameter defined. You might want to try the following:
CookieHelper.SetValue("CookieName", "CookieValue", "/yourpath-or-root", DateTime.Now.AddDays(1), true, "." + URLHelper.GetDomain(RequestContext.CurrentDomain))
Setting the domain to something like .domain.com
will allow all subdomains to access that cookie as well vs using something like domain.com
which will only allow that given domain and no subdomains to access it.
Setting your domain properly should get you what you're looking for.