With servlet 3.0 this is a better place to set this config

This commit is contained in:
Kohsuke Kawaguchi committed 2016-02-27 10:40:15 -08:00
1 parent 96b2b2a889
commit f286bc27bd
2 files changed
+7 -4

No files matched your search

@@ -117,10 +117,6 @@ public class WebAppMain implements ServletContextListener {
installLogger();
// Set the session cookie as HTTP only.
// See https://www.owasp.org/index.php/HttpOnly for the discussion of this topic in OWASP
context.getSessionCookieConfig().setHttpOnly(true);
final FileAndDescription describedHomeDir = getHomeDir(event);
home = describedHomeDir.file.getAbsoluteFile();
home.mkdirs();