#2609 - Increased session length for admin
| Identifier | #2609 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Increased session length for admin |
| Status | Closed (cannot reproduce) |
| Handling member | Chris Graham |
| Addon | core |
| Description | I am getting logged out after 5 mins of inactivity (which is the default for all users). As an admin, perhaps this could be increased. I thought actually there used to be a setting in usergroups for session length but it's not there anymore (or never was). |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
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.