Fixed session matching bugs

IPv4 and IPv6 ip's were being used interchangeably in Windows and
causing you to be logged in when sending requests one way but logged out
when sending requests using a different client