Fix cookieSession to work with FQDN

Fixes cookieSession per discussion in https://github.com/senchalabs/connect/pull/947