fixed implementation of Session::getHasSessionId().
Fixed user status check.