{
  "synLogic": "int $ret \u003d $api($1);",
  "help": "The ns_set_session_status API sets the status of  the session",
  "notes": "This API must be used just before session end",
  "returns": "The return value of this API is an integer value. If the session status is set successfully, the return value is 0. If an error occurs, the return value is a non-zero integer, which indicates the type of error that occurred.",
  "arguments": "The status parameter is an integer value that represents the status of the session. The meaning of different status values is application-specific. ",
  "parameterization": "",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "Status",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Status",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Number",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 2147483647
      },
      "quotes": true
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
        "required": false,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      },
      "quotes": true
    }
  ],
  "name": "ns_set_session_status",
  "syntax": "int ns_set_session_status(int status)",
  "javaSyntax": "",
  "cEx": "flow()\n{\n  int status = 1; // Set session status to 1\n  int returnVal = ns_set_session_status(status); // Set session status using API\n  if(returnVal == 0) {\n    printf(\"Session status set successfully\");\n  } else {\n    printf(\"Failed to set session status\");\n  }\n}",
  "javaEx": "",
  "insertStrC": "ns_set_session_status(int status);",
  "insertStrJava": "",
  "description": "The ns_set_session_status API sets the status of  the session"
}