public RemoveCookie ( string name ) : void | ||
name | string | The name. |
return | void |
public void RemoveCookie(string name)
{
HttpCookie cookie = new HttpCookie(name, "");
cookie.Expires = DateTime.Now.AddYears(-10);
cookie.Path = context.ApplicationPath;
CreateCookie(cookie);
}
}