Figured it out. Just needed to added Path to the cookie creation. Or else the cookie is set to cookieX.cookies.prt/default.aspx.
Response.Cookies.Add(new HttpCookie(
"CookieTest", "This is to test the cookie domain")
{
Domain = ".cookies.prt",
Path = "/"
}