I can only get this to happen if you wait 15 minutes after loading any page on the forum, then you visit online.php
What happens is that the current user doesn't have an active session so the session information is no longer available. Fixed for the next build.