Fixed session configuration for localhost and ips