Added session method to detect IP address.