Are you sure you’re actually logged in? I would argue that you’re not logged in if it comes up with the login form.
I think this sounds like a cookies issue. Can you add this to your config.php and see if it works?
$bb->cookiepath = '/';
If not, check what the properties are for cookies set (just to make sure that’s not the problem).