MyBB Community Forums

Full Version: Who's Online URL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How does the Who's Online page know where to link the location of a user?

Every time a user logs in, there is a new row added in the TABLE_PREFIX.sessions table. In that row, the location of the user is stored in one of the fields.
The online.php page selects that field for the specific user and uses the location as a link.