@Override
    public void onStartup(final ServletContext servletContext) throws ServletException {
        servletContext.setSessionTrackingModes(Set.of(SessionTrackingMode.COOKIE));
        super.onStartup(servletContext);
    }
This is {@link AbstractCasSpringBootServletInitializer}.

@author Misagh Moayyed
@since 6.4.0
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/boot/AbstractCasSpringBootServletInitializer.java