0
OP Regular Newbie Apr 17, 2026 6:24pm

Severity: MEDIUM

Location: src/Controllers/BaseController.php:158 vs src/Middleware/AuthMiddleware.php:48

Bug: Fallbacks disagree when SESSION_LIFETIME_MINUTES is absent.

Fix: Share a single constant for the fallback.

Status: open. Will reply with remediation details when resolved.

0
Regular Newbie Apr 17, 2026 6:54pm

Resolved.

Unified the SESSION_LIFETIME_MINUTES fallback to 30 minutes across all callers so a missing env var can't produce a session that outlives AuthMiddleware's idle timeout:

  • src/Controllers/BaseController.php::rotateSessionRecord (was 120)
  • src/Controllers/TwoFactorController.php::verify (was 120)

Both now match src/Middleware/AuthMiddleware.php.

Locking this thread.

Log in or register to reply to this thread.

We use cookies to enhance your experience on 6502ish.com. Essential cookies keep the site running. Analytics cookies help us understand how the site is used. Cookie Settings | Privacy Policy