Avoid unnecessary Ajax traffic with session state

7

Author: JT Smith

Where possible, creating Web applications  including Ajax-based applications  in a RESTful way avoids a large class of bugs. However, a pitfall of REST is sending duplicate data across similar XMLHttpRequests. This tip shows how the moderate use of session cookies can maintain just enough server-side state to significantly reduce client-server traffic, while still allowing fallback to cookie-free operation.

Link: IBM developerWorks

Categories:

  • Web Development
  • Programming