I wonder how i can retrieve all the sessions from the database using the api. Can anyone tell me?
As far as I know, there is no way to do that using the API. The best approach is to keep a list of the sessions you have (their ids). You can also try to query SessionInfo table to get those ids. But again, this is not part of the API.
Retrieving data ...