I have an online gaming website, which has user registration, login to manage profile etc. I have developed search user module to search for player with age, sex, location filter.
I need a PHP function or module to which i can pass a user ID and it returns me 1 if the user is online and 0 is offline. If any new tables needs to be created, please do the same and provide me the SQL.
The code integration will be taken care by me.