2012-07-01, 07:50 PM
Where is the user online status stored in MySQL?
I want to check if a user is logged on or off in a script.
Ideally I'd like to check if a username is in an array of logged in users.
The following is not what I'm after: $mybb->user['uid'] or $mybb->user['username'] only returns the user id or username for the user currently visiting the page.
I want to check if a user is logged on or off in a script.
Ideally I'd like to check if a username is in an array of logged in users.
if (in_array ($user, $array_of_loggedin_users)) {
do this;
}
The following is not what I'm after: $mybb->user['uid'] or $mybb->user['username'] only returns the user id or username for the user currently visiting the page.