增加删除指定key的cookie方法
This commit is contained in:
parent
5d1271c4e8
commit
11e1eb5119
|
@ -52,4 +52,14 @@ public class CookieUtil {
|
|||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除cookie
|
||||
* @param response
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public static void removeCookie(HttpServletResponse response, String name) {
|
||||
setCookie(response, name, "", "/", 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue