Difference between HttpResponse: SetCookie, AppendCookie, Cookies.Add

If I remember correctly both

Response.Cookies.Add(..)

and

Response.AppendCookie(..)

will allow multiple cookies of the same name to be appended to the response.

On the other hand

Response.SetCookie(..)

and

Response.Cookies[key].Value = value;

will always overwrite previous cookies of the same name.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)