Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Cookies and Sessions

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:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial