Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Suge81 Posted June 27, 2019 Posted June 27, 2019 where i can change the Session expiration (in seconds) for the who is online widget. I changed the setting on PHP but it dont worked .. Thanks for help. Greetz
DawPi Posted June 27, 2019 Posted June 27, 2019 You can't easily change that. It's hardcoded to 30minutes: public function getOnlineUsers( $flags=0, $sort='desc', $limit=NULL, $memberGroup=NULL, $showAnonymous=FALSE ) { /* Query */ $where = array( array( 's.running_time>?', \IPS\DateTime::create()->sub( new \DateInterval( 'PT30M' ) )->getTimeStamp() ),
Suge81 Posted June 27, 2019 Author Posted June 27, 2019 9 hours ago, DawPi said: You can't easily change that. It's hardcoded to 30minutes: public function getOnlineUsers( $flags=0, $sort='desc', $limit=NULL, $memberGroup=NULL, $showAnonymous=FALSE ) { /* Query */ $where = array( array( 's.running_time>?', \IPS\DateTime::create()->sub( new \DateInterval( 'PT30M' ) )->getTimeStamp() ), where is this ? I dont find it in whosonline widget php
Suge81 Posted June 27, 2019 Author Posted June 27, 2019 6 hours ago, DawPi said: system/Session/Store/Database.php there is 2 lines with PT30M i changed both
Suge81 Posted July 11, 2019 Author Posted July 11, 2019 well i changed to Redis and now the settings are gone. i edited the redis.php in system/Session/Store but it doesnt work
Recommended Posts
Archived
This topic is now archived and is closed to further replies.