Fix cookie setting on non standard port