Service Help – UserSessionCheck
The Sharperlight service offers a wide variety of presentation methods, each with its own set of parameters.
In this post, we will introduce the following method from among the various presentation methods available.
http://abcd.com/mdService1Rest/UserSessionCheck/…
{sharperlight service url}/Help#UserSessionCheck
|
Check that the user session id is valid. There are two ways to check one where the response text is [valid or invalid] or a html page that redirects to the User Logon Append the user session id &usid=64919ad6e54348a4925faee2146e1b60Z to all url calls that you make to the Service
http://abcd.com/mdService1Rest/UserSessionCheck/?usid=64919ad6e54348a4925faee2146e1b60Z&response=json
http://abcd.com/mdService1Rest/UserSessionCheck/?usid=64919ad6e54348a4925faee2146e1b60Z&response=html |
|
| usid=xxxxxZ | User Session ID |
| resultFormat=[html|simple|json|text] | Set the type of response required. html will return a web page that redirects to the User Logon while simple returns the validation results. This is an old parameter and is kept for backward compatibility (see response) |
| response=[default|html|json|text] |
The format of the response status e.g. &response=json The status is very simple it’s is either valid or invalid. JSON SUCCESS
[ { status: “valid” } ]
JSON ERROR
[ { status: “invalid” } ]
TEXT OR SIMPLE SUCCESS
valid
TEXT or SIMPLE ERROR
invalid
|
| callback=[MyFunc] | JSON Callback function (Optional) &callback=MyFunc results in MyFunc( [ { status: “valid” } ] ); |
