Castle.MonoRail.Framework.Adapters.ResponseAdapter.RemoveCookie C# (CSharp) Method

RemoveCookie() public method

Removes the cookie.
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);
		}
	}