diff --git a/src/main/java/eu/webeid/example/config/ApplicationConfiguration.java b/src/main/java/eu/webeid/example/config/ApplicationConfiguration.java index 0b5c2dc..96430c1 100644 --- a/src/main/java/eu/webeid/example/config/ApplicationConfiguration.java +++ b/src/main/java/eu/webeid/example/config/ApplicationConfiguration.java @@ -64,8 +64,6 @@ protected void configure(HttpSecurity http) throws Exception { .authenticated() .and() .logout() - .logoutUrl("/logout") - .deleteCookies("JSESSIONID") .logoutSuccessHandler(new HttpStatusReturningLogoutSuccessHandler()) .and() .headers() diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index cbb42d2..7d70ac4 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1,2 @@ spring.profiles.active=dev +server.servlet.session.cookie.name=__Host-JSESSIONID \ No newline at end of file