Skip to content

Commit b804142

Browse files
committed
Simplify settings php-backed session expiry
The previous use of __MTIME doesn't actually make sense at all.
1 parent 538ba3c commit b804142

File tree

1 file changed

+1
-5
lines changed
  • program/lib/Roundcube/session

1 file changed

+1
-5
lines changed

program/lib/Roundcube/session/php.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ public function start()
9797

9898
$this->key = session_id();
9999
$this->ip = $_SESSION['__IP'] ?? null;
100-
if (is_int($_SESSION['__MTIME'])) {
101-
$this->expires_at = $_SESSION['__MTIME'] + $this->lifetime;
102-
} else {
103-
$this->expires_at = null;
104-
}
100+
$this->expires_at = time() + $this->lifetime;
105101
}
106102
}

0 commit comments

Comments
 (0)