Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
bridges101 Posted March 4, 2018 Posted March 4, 2018 Is there a setting for how long a user shows online before they are kicked off the online list. Can the time be adjusted? I can't find the setting anyway.
Daniel F Posted March 4, 2018 Posted March 4, 2018 This is controlled by php via the session.gc_maxlifetime option ( http://php.net/manual/en/session.configuration.php )
Martin A. Posted March 4, 2018 Posted March 4, 2018 28 minutes ago, Daniel F said: This is controlled by php via the session.gc_maxlifetime option ( http://php.net/manual/en/session.configuration.php ) Isn't that just used for ACP sessions? The only place "session.gc_maxlifetime" is used is in a task that clears those. EDIT: I see that \IPS\Session::gc() is sent as a callback to session_set_save_handler(). Guess sessions are then cleared "when needed". For the online list this is used: /* Query */ $where = array( array( 'core_sessions.running_time>?', \IPS\DateTime::create()->sub( new \DateInterval( 'PT30M' ) )->getTimeStamp() ), array( "core_sessions.login_type!=?", \IPS\Session\Front::LOGIN_TYPE_SPIDER ) );
Recommended Posts
Archived
This topic is now archived and is closed to further replies.