Skip to content

Admin Session Clean Expired Sessions does not use config value #33656

Open
@Quazz

Description

@Quazz

Preconditions (*)

  1. Magento 2.4.2

Steps to reproduce (*)

  1. Have admin session lifetime configured as a value greater than 86400s. (May be 1 year's seconds or something like that)
  2. Create admin session by logging in on admin panel
  3. Wait >86400s (but lesser than the seconds that is set in step1).
  4. Run crontask security_clean_admin_expired_sessions (which calls method cleanExpiredSessions)
  5. Admin sessions gets cleaned.

Expected result (*)

  1. Admin session cleaning uses config value, allowing sessions to stick around even when older than 86400s

Actual result (*)

  1. Admin session cleaning uses class constant of 86400s as a limit

Additional Information

  1. Update the Admin Session Lifetime (seconds), please find the below screenshot:

image

  1. Wait for > 86400
  2. Run cron security_clean_admin_expired_sessions

Terminal

  1. Check the admin panel if it is logged in or not:
    Magento-Admin - Logout

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • [ *] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

(not sure on severity, it forces you to log back in, which is annoying but not critical I suppose)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SecurityComponent: CronIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: ready for devReported on 2.4.2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions