some optimization on osc_is_web_user_logged_in() , the same work could b...

...e done for the admin user, since we already have a pull-request that merges both, I will not do it as it will be useless once the pull-request is accepted, related to issue #1060