The idea of an honest REST service is to allow any client to easily communicate with him, even a client who is not in a web browser: it can be a mobile or desktop application or something else. Thus, each service request must provide all the necessary information to process this request. Saving state on the server complicates the task because clients will not control it.
So, YES, ideally, the state should be kept by customers. BUT, we need to clearly understand what we mean by "state." Because there are different types of state: application state and resource state. I like the following article about the difference.
PS And BTW, saving state in cookies, will also make life difficult for customers (if they are not web browsers).
ialekseev Nov 20 '14 at 1:55 a.m. 2014-11-20 13:55
source share