Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Commit

Permalink
[playframework#530] added removeCookie(name, path)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbknor committed Mar 29, 2011
1 parent 7770d86 commit 88dd5cd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion framework/src/play/mvc/Http.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 88dd5cd

Please sign in to comment.