Fixed session configuration for localhost and ips

Closes #117