Update CustomHttpSessionListener.java

This commit is contained in:
Ludy87 2025-04-05 17:30:09 +02:00
parent ce1d153a71
commit bf9a4358b8
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -237,16 +237,22 @@ public class CustomHttpSessionListener implements HttpSessionListener, SessionsI
// Get the maximum number of application sessions // Get the maximum number of application sessions
@Override @Override
public int getMaxApplicationSessions() { public int getMaxApplicationSessions() {
if (runningEE) {
return getMaxUsers() * getMaxUserSessions(); return getMaxUsers() * getMaxUserSessions();
} }
return Integer.MAX_VALUE;
}
// Get the maximum number of user sessions // Get the maximum number of user sessions
@Override @Override
public int getMaxUserSessions() { public int getMaxUserSessions() {
if (loginEnabled) { if (loginEnabled) {
if (runningEE) {
return 3; return 3;
} }
return 10; return Integer.MAX_VALUE; // (3)
}
return Integer.MAX_VALUE; // (10)
} }
// Get the maximum number of user sessions // Get the maximum number of user sessions
@ -259,8 +265,8 @@ public class CustomHttpSessionListener implements HttpSessionListener, SessionsI
return maxUsers; return maxUsers;
} }
} }
return 50; return Integer.MAX_VALUE; // (50)
} }
return 1; return Integer.MAX_VALUE; // (1)
} }
} }