This commit is contained in:
Greg Wilkins 2017-03-30 14:57:18 +11:00
parent 2fafa1de0f
commit 18f17ac102
1 changed files with 1 additions and 1 deletions

View File

@ -1506,7 +1506,7 @@ public class Request implements HttpServletRequest
s.renewId(this);
if (getRemoteUser() != null)
s.setAttribute(Session.SESSION_CREATED_SECURE, Boolean.TRUE);
if (s.isIdChanged())
if (s.isIdChanged() && _sessionHandler.isUsingCookies())
_channel.getResponse().addCookie(_sessionHandler.getSessionCookie(s, getContextPath(), isSecure()));
}