This is a better version of detect_logged_in() for webcit-ng that