|
|
|
|
|
by reipahb
4054 days ago
|
|
One thing to note is that while the continuation token is just a blob of data from the clients perspective, the server can actually use it to store the required state information. A simple method would be to take the state information the server needs in order to continue the enumeration (e.g. sorting order, how far along it was in the enumeration, etc.), JSON-encode it, encrypt&sign it, and then base64 encode it. Return that token to the client, and if the client wants more data it can pass that token back to the server, which can decode it into all the information it needs to resume the enumeration. |
|
This isn't what the author recommends, but I think this is a good approach.