[TECHNICAL SUPPORt] LPS-38618 Handle Don't set cookie domain explicitly if SESSION_COOKIE_USE_FULL_HOSTNAME is enabled

Hi Zsigmond,

I've refactored and retested the code. Hopefully it will be fine now.

Cheers,
Vilmos