November 17, 2007

Avoid unnecessary Ajax traffic with session state

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
Click Here!