Change subdomain extraction logic

Substract session domain from full hostname instead of just getting
the first-level subdomain