'C# storing cookies with an Exp. Date but it only being stored like a session

I am trying to store a cookie in which i will later user

 var cookieOPtions = new CookieOptions {
                Expires = DateTime.Now.AddDays(1)
            };
 Response.Cookies.Append("cookieName", "someData", cookieOPtions);

as you can see i am setting the exp date of that cookie, but it is still being stored like a session and being deleted as soon as i close my application

Image of cookie



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source