Eldon Hipolito
Eldon Hipolito

Reputation: 724

How does session work on web service calls

Assuming a sends a request twice through REST api. Is it considered as two different session?

Upvotes: 0

Views: 247

Answers (1)

pedrofb
pedrofb

Reputation: 39321

REST architectural constraints are in general (from wikipedia):

  • Client-Server
  • Stateless
  • Cacheable
  • Layered system
  • Code on demand (optional)
  • Uniform interface

Therefore "session" concept is not applicable. The REST request should contain all data needed to be processed: credentials, resources to use, payload, etc

Upvotes: 1

Related Questions