Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This chapter discusses how cookies and sessions support the reply and response model used by web applications. It demonstrates how to create and modify both cookies and sessions. Cookies are client-side information files. Cookies contain data supporting transactions across stateless HTTP network communication. Sessions are data entities and are stored as files or records in a database on the server. Sessions contain information you typically do not want to exchange between client and server, like user names and passwords.
The chapter is divided into three sections: