sync source code with article

This commit is contained in:
amit.pandey
2020-04-12 00:01:36 +05:30
parent ae8fb70e40
commit 5b88ab42df
20 changed files with 310 additions and 8 deletions
@@ -0,0 +1,16 @@
package com.baeldung.session.web.config;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.web.WebApplicationInitializer;
public class MainWebAppInitializer implements WebApplicationInitializer {
@Override
public void onStartup(ServletContext sc) throws ServletException {
sc.getSessionCookieConfig().setHttpOnly(true);
sc.getSessionCookieConfig().setSecure(true);
}
}