Avoid unnecessary Ajax traffic with session state
November 17, 2007 (4:30:00 PM) - 11 months ago
Share
a>
Print
Comments
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.