Alternative:
If running on a *nix based box, you can create a script to run as a cron job which basically resets everyone's bitt flags back to 0 automatically like every 10 minutes or so.
If the user is on while their bit is set to 0, and their session is still active in their browser, then on the next page load, it will set the bit back to 1. If they close their browser, then their session ends, and obviously, their bit would stay at 0.
With this method, the worst case scenario would be they can't log back in for x number of minutes (however long you have between the cron jobs running.)