add query sessionip function.