#2609 - Increased session length for admin
1 guest and 0 members have recently viewed this.
The top 3 point earners from 14th Dec 2025 to 21st Dec 2025.
| PDStig |
|
|
|---|---|---|
| Gabri |
|
|
| sholzy |
|
|
There are no events at this time
Pretty sure I saw session length under usergroup settings at one point (maybe ocPortal), if not then I must be losing my mind (again).
set_session_id in users_inactive_occasionals.php sets the time expiry of a cookie via.
$timeout = $guest_session ? (time() + intval(60.0 * 60.0 * max(0.017, floatval(get_option('session_expiry_time'))))) : null;
If $guest_session, then no timeout. Otherwise, set a time out of whichever is greater... 0.017 hours (aka. 61.2 seconds) or the value of session_expiry_time .
I mentioned MySQL because we use what is called a 'MEMORY' (aka 'HEAP') table in MySQL for cms_sessions. This is a memory-only resident table. If MySQL is reset, sessions get lost.