@ -51,7 +56,7 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
@@ -51,7 +56,7 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
"MaximumLogins must be either -1 to allow unlimited logins, or a positive integer to specify a maximum");
"MaximumLogins must be either -1 to allow unlimited logins, or a positive integer to specify a maximum");
Assert.notNull(this.messages,"A message source must be set");
}
@ -59,21 +64,22 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
@@ -59,21 +64,22 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
"Maximum sessions of {0} for this principal exceeded"));
}
@ -82,8 +88,8 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
@@ -82,8 +88,8 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
for(inti=0;i<sessions.length;i++){
if((leastRecentlyUsed==null)
||sessions[i].getLastRequest()
.before(leastRecentlyUsed.getLastRequest())){
||sessions[i].getLastRequest()
.before(leastRecentlyUsed.getLastRequest())){
leastRecentlyUsed=sessions[i];
}
}
@ -92,16 +98,17 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
@@ -92,16 +98,17 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
@ -111,7 +118,7 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
@@ -111,7 +118,7 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
"getMaximumSessionsForThisUser() must return either -1 to allow unlimited logins, or a positive integer to specify a maximum");
"getMaximumSessionsForThisUser() must return either -1 to allow unlimited logins, or a positive integer to specify a maximum");
if(sessionCount<allowableSessions){
return;
@ -124,41 +131,40 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
@@ -124,41 +131,40 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
@ -170,8 +176,7 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
@@ -170,8 +176,7 @@ public class ConcurrentSessionControllerImpl implements ConcurrentSessionControl
@ -64,7 +64,8 @@ public class SessionRegistryImpl implements SessionRegistry,
@@ -64,7 +64,8 @@ public class SessionRegistryImpl implements SessionRegistry,
@ -79,7 +80,7 @@ public class SessionRegistryImpl implements SessionRegistry,
@@ -79,7 +80,7 @@ public class SessionRegistryImpl implements SessionRegistry,