Is it possible to store application session via REST?
Unfortunately it is not possible to store application session via REST. If the application is closed the session will be lost and user will need to log in again.
Currently you can only store login and password in the application.
Also keep in mind that expiration time for token is 2 hours after the last query (this is used for security reasons). If you perform the query with expiration token you will receive Required session does not exist error. In this case you need to re-create the session.