18.08.2009, 00:30
Instead of using a timer to remove the record, you could just check if 5 mins or whatever has passed when that IP reconnects and if so remove the record there. If the IP doesn't reconnect, could could store the time to the database and check when initialising it whether any IPs have expired.
GetTickCount is a useful function for things like these.
GetTickCount is a useful function for things like these.