Problem/Motivation

The log message for user login or logout currently is 'user name( uid)', which is redundant as the user name and ID have been in the 'ref_numeric' and 'ref_char' field. Also Drupal core will log those information while user sign in or out.

Steps to reproduce

  • Install event_log_track_auth module
  • Login as admin user.
  • Check the Drupal logs and event logs
  • In the Drupal log, there is a log for this action, such as 'Session opened for admin.'
  • In the Events log, there is a log for the same action, in which the description is 'admin (uid 1)'

Proposed resolution

Log the number of sessions belonging to the user instead. Then the description of the log will look like 'SC(3)', in which SC means Session Count. The number 3 means there are 3 sessions belonging to that user.

It is a similar idea as Session Limit module.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mingsong created an issue. See original summary.

Mingsong’s picture

Status: Active » Needs review
Mingsong’s picture

Issue summary: View changes
Mingsong’s picture

Issue summary: View changes

smustgrave made their first commit to this issue’s fork.

  • smustgrave committed a42059bb on 3.0.x authored by Mingsong
    Issue #3348812: Use session counting instead of duplicated information...
smustgrave’s picture

Status: Needs review » Fixed
Mingsong’s picture

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.