The session command provides the valid session and meta ranges (field1 and field2) of the service (the same functionality as the standard SDK NwSession). The parameters id1 and id2 are the starting and ending session range. The command returns the starting and ending session and the valid starting and ending meta range. If you pass zero for both id1 and id2, the command returns the full valid session range with the full valid meta range. If you pass any other numbers, it reduces the meta range to match the session range.
Provide use case where you want the full session range.
Provide use case where you want to limit the range.
Which is the more usual case?
This is important because many of the SDK commands work with meta ranges, not session ranges. You can pass zero for many of the commands that take ranges, but doing that prevents query results from being cached. Using a range lets the service return the answers quickly, providing that the same question has already been asked.
This document uses HTML output, but a typical REST client uses XML or JSON as well. The session command would appear as follows in the other formats. The session command would appear as follows in the other formats.