Question: I am working on Cookies. It was earlier working with all browsers, but now stopped working with Google Chrome and is still working with other browsers like Edge, IE.

Below is my code.

```
HttpCookie cookie = HttpContext.Current.Request.Cookies["_crt"];
if (cookie == null)
{
    cookie = new HttpCookie("_crt");
    cookie.Path = "/";
    cookie.Expires = DateTime.Now.AddDays(30);
    List<Cart> list = cart.AddItemToCart(cart, new List<Cart>());
    cookie.Value = cart.EncryptCartItem(list);
    HttpContext.Current.Response.Cookies.Add(cookie);

}
else
{
    if (string.IsNullOrWhiteSpace(HttpContext.Current.Request.Cookies["_crt"].Value))
    {
        List<Cart> list = cart.AddItemToCart(cart, new List<Cart>());
        cookie.Value = cart.EncryptCartItem(list);
    }
    else
    { cookie.Value = cart.EncryptCartItem(cart.AddItemToCart(cart, cart.DecryptCartItem(HttpContext.Current.Request.Cookies["_crt"].Value))); }
    cookie.Expires = DateTime.Now.AddDays(30);
    HttpContext.Current.Response.Cookies.Set(cookie);

```

Answer: 
I have the same issue. Since few days, a simple HttpCookie doesn't work anymore, but only on mobile throught browser.

```
var cookie = new HttpCookie(CST_IDENTIFICATION_COOKIE)
{
   Expires = DateTime.Now.AddDays(3),
};
[...]
Response.SetCookie(cookie);

```

Btw, I got the answer directly from Chrome console.

> 
> A cookie associated with a resource at
> <http://xxxxxx.xxxxxxxx.xxx/> was set with `SameSite=None` but
> without `Secure`. A future release of Chrome will only deliver cookies
> marked `SameSite=None` if they are also marked `Secure`. You can
> review cookies in developer tools under Application>Storage>Cookies
> and see more details at
> <https://www.chromestatus.com/feature/5633521622188032>.
> 
> 
> 

I had to set the property 'Secure' of the cookie to 'true' to make it works.

```cs
cookie.Secure = true;

```
```
Response.Cookies.Append("jwt", jwt, new CookieOptions
                    {
                        HttpOnly = true,
                        Secure = true,
                        SameSite = SameSiteMode.None
                    });

```