Skip to content

Commit

Permalink
Update CookieUtil.java
Browse files Browse the repository at this point in the history
  • Loading branch information
tigris24 committed Sep 26, 2024
1 parent 48f2e70 commit f68ccf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/echall/platform/util/CookieUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void addCookie(HttpServletResponse response, String name, String v
Cookie cookie = new Cookie(name, value);
cookie.setMaxAge(maxAge);
cookie.setPath("/");
cookie.setHttpOnly(true);
// cookie.setHttpOnly(true);
// cookie.setSecure(true);
// cookie.setDomain("localhost");

Expand All @@ -32,7 +32,7 @@ public static void removeCookie(HttpServletRequest request, HttpServletResponse
cookie.setValue("");
cookie.setMaxAge(0);
cookie.setPath("/");
cookie.setHttpOnly(true);
// cookie.setHttpOnly(true);
// cookie.setSecure(true);

response.addCookie(cookie);
Expand Down

0 comments on commit f68ccf2

Please sign in to comment.