Create sessid with first visit.
Send query as json.