In Patch 3, the AMLoginModule class includes the new isSessionQuotaReached() method to determine a user?s current session quota level:
public boolean isSessionQuotaReached(String userName)
This new method checks if the sessionCount is greater than or equal to the sessionQuota and returns true or false, depending the result.
Thus, a custom authentication module can check a user?s current session quota level and then if the user is about to exceed the session quota, ask whether that user wants to continue the session. This feature is normally be more useful when session constraints are enabled.