Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Both the role and user session-limit use a pull-down which is limited to a maximum of 100. This would seem sensible but I happen to have one user who needs 156 simultaneous logins. Is there any way to override the pull-down and enter an arbitrary integer?
Comments
Comment #1
deekayen CreditAttribution: deekayen commentedThere is not currently. I would accept a patch to change it to 500 or better yet a text field combined with a form validation hook that does an is_int() check.
Comment #2
RichardH CreditAttribution: RichardH commentedTo get more than 100 concurrent logins, it appears that you could change line 372.
For example, to allow for 500 concurrent logins, change line 372 from:
$options = drupal_map_assoc(range(0, 100));
to
$options = drupal_map_assoc(range(0, 500));
Correct me if I'm wrong, but a quick run through the code, and quick test allows me to use 500. However, i haven't actually logged into 500 simultaneous sessions so I can't completely confirm this is the fix. However, I logged in with two concurrent sessions. I can verify that 500 shows up in the UI after saving the settings, and going back into to double-check.
Comment #3
deekayen CreditAttribution: deekayen commentedThat would do it, but 156 simultaneous logins? I'd rather have it be a validated text field instead of a dropdown if there's really a need for more than 100.
Comment #4
deekayen CreditAttribution: deekayen commentedI wanted this issue to go away, so I increased the limit to 250.