LPS-38618 Handle Don't set cookie domain explicitly if  SESSION_COOKIE_USE_FULL_HOSTNAME is enabled
LPS-38618 Fixing related Test class
LPS-38618 avoid needless calls when enabled