Thanks to Mike Jervis, i was able to look up some more links.
I looked up in my GL 1.4.1 in lib-common.php around Who's Online block. I noticed the following line.
Text Formatted Code
// Clear out any expired sessions
DB_query( "DELETE FROM {$_TABLES['sessions']} WHERE uid = 1 AND start_time < " . ( time() - $_CONF['whosonline_threshold'] ));
Text Formatted Code
// Clear out any expired sessions
DB_query( "DELETE FROM {$_TABLES['sessions']} WHERE start_time < " . ( time() - $_CONF['whosonline_threshold'] ));
So if you are having the same problem my solution is to just copy the like from 1.4.1 i posted here and replace the line in 1.5.0 in libcommon.php