From 88dd5cd447200886c4fba1de834efaad42d508dc Mon Sep 17 00:00:00 2001 From: Morten Kjetland Date: Wed, 30 Mar 2011 00:38:34 +0200 Subject: [PATCH] [#530] added removeCookie(name, path) --- framework/src/play/mvc/Http.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/framework/src/play/mvc/Http.java b/framework/src/play/mvc/Http.java index 25d70f3b0d..6de746618c 100644 --- a/framework/src/play/mvc/Http.java +++ b/framework/src/play/mvc/Http.java @@ -610,8 +610,21 @@ public void setCookie(String name, String value) { setCookie(name, value, null, "/", null, false); } + /** + * Removes the specified cookie with path / + * @param name cookiename + */ public void removeCookie(String name) { - setCookie(name, "", null, "/", 0, false); + removeCookie(name, "/"); + } + + /** + * Removes the cookie + * @param name cookiename + * @param path cookiepath + */ + public void removeCookie(String name, String path) { + setCookie(name, "", null, path, 0, false); } /**