improved host configuration settings + use hostname from configuration for session cookies