Skip to content

Commit 2c91e44

Browse files
committed
Path fix
1 parent 96dfdc8 commit 2c91e44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

QueueIT.Security/src/queueit/security/CookieValidateResultRepository.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private void addCookie(Cookie cookie, HttpServletResponse response, int maxAge)
190190
{
191191
cookie.setHttpOnly(true);
192192
cookie.setMaxAge(maxAge < 0 ? 0 : maxAge);
193-
cookie.setPath("/");
193+
cookie.setPath("/");
194194
if (defaultCookieDomain != null)
195195
cookie.setDomain(defaultCookieDomain);
196196

@@ -208,11 +208,11 @@ private void clearExistingCookies(HttpServletResponse response, String key, int
208208
DateFormat df = new SimpleDateFormat("dd-MMM-yyyy kk:mm:ss z");
209209
df.setTimeZone(TimeZone.getTimeZone("GMT"));
210210

211-
response.setHeader("Set-Cookie", key + "=true; Expires=" + df.format(expdate) + ";");
211+
response.setHeader("Set-Cookie", key + "=true; Path=/; Expires=" + df.format(expdate) + ";");
212212
}
213213
else
214214
{
215-
response.setHeader("Set-Cookie", key + "=true; Expires=Thu, 11-Sep-2014 11:27:49 GMT;");
215+
response.setHeader("Set-Cookie", key + "=true; Path=/; Expires=Thu, 11-Sep-2014 11:27:49 GMT;");
216216
}
217217

218218
for (String cookieHeader : cookieHeaders)

0 commit comments

Comments
 (0)