package de.papke.cloud.portal.auth;

import org.springframework.context.annotation.Bean;
import org.springframework.session.data.mongo.JdkMongoSessionConverter;
import org.springframework.session.data.mongo.config.annotation.web.http.EnableMongoHttpSession;

@EnableMongoHttpSession
public class HttpSessionConfig {
	
	@Bean
    public JdkMongoSessionConverter jdkMongoSessionConverter() {
            return new JdkMongoSessionConverter(); 
    }
}

@@ -279,55 +279,170 @@
 sion
-%0Apublic class HttpSessionConfig %7B%0A%09%0A%09@Bean%0A    
+(maxInactiveIntervalInSeconds = HttpSessionConfig.SESSION_TIMEOUT)%0Apublic class HttpSessionConfig %7B%0A%09%0A%09public static final int SESSION_TIMEOUT = 28800;%0A%09%0A%09@Bean%0A%09
 publ
@@ -502,20 +502,10 @@
 ) %7B%0A
-            
+%09%09
 retu
@@ -544,12 +544,9 @@
 ); %0A
-    
+%09
 %7D%0A%7D%0A

Increase session timeout for mongo http sessions