if (webAppInfo.sessionConfig.sessionTrackingModes != null) {
sessionManager.setSessionTrackingModes(webAppInfo.sessionConfig.sessionTrackingModes);
}
SessionCookieConfigInfo sessionCookieConfigInfo = webAppInfo.sessionConfig.sessionCookieConfig;
if (sessionCookieConfigInfo != null) {
SessionCookieConfig cookieConfig = sessionManager.getSessionCookieConfig();
if (sessionCookieConfigInfo.name != null) {
cookieConfig.setName(sessionCookieConfigInfo.name);
}
if (sessionCookieConfigInfo.comment != null) {
cookieConfig.setComment(sessionCookieConfigInfo.comment);
}
if (sessionCookieConfigInfo.domain != null) {
cookieConfig.setDomain(sessionCookieConfigInfo.domain);
}
if (sessionCookieConfigInfo.httpOnly != null) {
cookieConfig.setHttpOnly(sessionCookieConfigInfo.httpOnly);
}
if (sessionCookieConfigInfo.maxAge != null) {
cookieConfig.setMaxAge(sessionCookieConfigInfo.maxAge);
}
if (sessionCookieConfigInfo.path != null) {
cookieConfig.setPath(sessionCookieConfigInfo.path);
}
if (sessionCookieConfigInfo.secure != null) {
cookieConfig.setSecure(sessionCookieConfigInfo.secure);
}
}
}
//supply web.xml to jasper
webAppContext.setAttribute(JASPER_WEB_XML_NAME, originalSpecDD);