adding back satya's code that was missed out in the merge.
fixing the issue of not sending sessionID.