Ok, if you suggest me using this api then please explain me how can I make for example users online script in efficient way.
I have 30k registered users and I want show users who have been active in the last 30 minutes, I can sort by lastactivity but I can't set in parameters ( i think) these 30 minutes. Thats mean to do that I need on every page load, loop all 30k users and check lastActivity object for each member. That I think is not efficient.
So far, I have not found in this API where i can check if a user is logged in or not.
E: Btw i fixed my problem, i removed my define from top because that was defined in init.php, very stupid mistake but ty all for help