add option to set hostname
simplify session cookie options