Changing session names
Fixing _buildQuery method with more than on param.