Would be nice to have a report or a daily summary notification on multiple session detection.
Issue fork session_limit-857404
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
interestingaftermath commentedIn addition, it would be nice to set the module to passive mode so that it simply provided reporting but didn't take any offensive action against the user. This would be more for monitoring, etc.
Comment #2
Leeteq commentedYes this would be great, second both suggestions.
Tentatively upping to Major. :-)
And this would probably be developed on the 7.x branch first, then possibly backported.
Comment #3
darksnowThere is already a lot of information logged to watchdog which shows when settings are changed and when sessions are limited.
If more reporting is needed then I feel like it's beyond the scope of this module. Perhaps a sub module can hook into the events already produced by this module and store the report in the database somewhere.
Seems like the major change needed here is being able to put this module into a passive mode so it doesn't actually limit anything but just fires it's hooks and rules, leaving the action up to any implementations there.
I don't have a use case for that so can't justify spending the time on it, but if there's a patch to effectively disable the action of this module, it could be interesting and useful.
Comment #4
giorgio79 commentedMost likely a use case for Rules integration :)
Comment #5
anybody+1 on this. Would be super helpful! Poor mans solution would be to at least log watchdog messages.
I disagree with #4 ;)
Comment #6
anybodyComment #7
anybodyComment #8
ipwa commented2.0.x is D10 only so lets have all feature requests against 3.0.x unless there's some existing patch or MR.
Comment #9
ipwa commentedWhat's already there: Watchdog logging — session_limit_log_events config toggle in SettingsForm (src/Form/SettingsForm.php:146). When enabled, SessionLimit::sessionDisconnect() logs "User %name session limit of %max_sessions reached. Session closed." via loggerFactory (src/Services/SessionLimit.php:409-418). See #2674244: Add useful watchdog logging
Comment #10
anybodyI'd vote to limit this to a report page. A daily notification etc. is quite special in my eyes and could be done custom, where needed.
Comment #11
anybodyPS: As alternative to #4 you could check if you can build custom things using ECA in combination with this or if it needs special integration.
Comment #13
ipwa commentedIf someone could test out the MR, I'd really appreciate it!