Fixed session configuration for localhost and ips

resolves #117