improved platform and microsite detection and session.cookie_domain related setup