Problems with logging out users
If you are also using the global $user object in your code, doing something like $user=user_load($node->uid) can 'log you in'.  This is a security issue and should be corrected.