Jump to content

Who's online


bridges101
 Share

Recommended Posts

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 )
		);

 

Edited by Martin A.
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...