V
V
vrazbros2021-06-16 18:42:46
RESTful API
vrazbros, 2021-06-16 18:42:46

Is it possible to store at least some state of the client on the server in accordance with the principles of REST?

Something I'm a little confused. According to REST principles, no client state can be stored on the server, but what about user sessions? If we save some data to the session and store it on the server, are we already violating the principles of REST? And our service is not Restfull ?
and if you save that the user is logged in to the site?
and if you save at what step was the user if the form is a lot of pages?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-06-16
@firedragon

You are confused
Any rest can contain a token, and here you give information for a specific user on it, or an error

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question