If I use this for myself I'll probably put in a database table to track by IP as it's more secure. I thought about using the "whos online" table with a few new fields to track the information since IP addresses are stored there already but this would require many more scripts to be modified.
I'm still debating if having 2 extra queries is worth it. lol (I thought 3 may be needed but have trimmed it down to 2 while thinking about it)