Long admin sessions increase the chance of abuse. If an admin leaves a computer unlocked or if an attacker steals a session cookie, they can act as that admin for as long as the session stays alive. With very long timeouts, this risk becomes much higher.
Limiting the session timeout to 900 seconds (15 minutes) makes attacks harder. Even if a session token is stolen, it will quickly expire and reduce the window of opportunity. This protects sensitive actions such as managing orders, customer data, or payment settings.
# In Admin UI:
Stores → Configuration → Advanced → Admin → Security → Admin Session Lifetime (seconds)
# Value should be 900 or less
# Admin Session Lifetime set to 7200 (2 hours)
Too long, unsafe
# Admin Session Lifetime set to 900
Expires after 15 minutes of inactivity