Return userSessionId in json

(from github.com/MajidSafari)
plz create userSessionId in json and return in json result

(from github.com/marevol)
userSessionId is sent from an user.
userSessionId is in cookies.

(from github.com/MajidSafari)
my problem fix ad #856