Skip to content

Commit

Permalink
fixed cookies should have a path equal to the current context path
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Apr 3, 2020
1 parent de7b656 commit f10f3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/erudika/scoold/utils/HttpUtils.java
Expand Up @@ -160,7 +160,7 @@ public static void setRawCookie(String name, String value, HttpServletRequest re
Cookie cookie = new Cookie(name, value);
cookie.setHttpOnly(httpOnly);
cookie.setMaxAge(maxAge < 0 ? Config.SESSION_TIMEOUT_SEC : maxAge);
cookie.setPath("/");
cookie.setPath(CONTEXT_PATH);
cookie.setSecure(req.isSecure());
res.addCookie(cookie);
}
Expand Down

0 comments on commit f10f3a7

Please sign in to comment.