Working with Sessions

Sessions, in Web parlance, are sets of connected request-response pairs. That is, if you make a request of a Web resource in one invocation, you expect the next invocation to keep track of the previous invocation. This is definitely not how the HyperText Transfer Protocol (HTTP) works under the covers. HTTP was developed to support a single request-response pair. Any knowledge of prior dealings with the server are completely forgotten.

However, as Web users, we demand that Web request-response pairs be remembered. The most obvious example is the Web-based shopping cart. When you place orders for goods over the Internet and those goods are collected into a virtual shopping cart, you expect the things you selected will be available ...

Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.