State Management (Cookies)

Web Architecture and Information Management [./]
Summer 2011 — INFO 153 (CCN 42509)

Erik Wilde, Dilan Mahendran, and Brad Andrews, UC Berkeley School of Information
2011-07-20

Creative Commons License [http://creativecommons.org/licenses/by/3.0/]

This work is licensed under a CC
Attribution 3.0 Unported License
[http://creativecommons.org/licenses/by/3.0/]

Contents Erik Wilde, Dilan Mahendran, and Brad Andrews: State Management (Cookies)

Contents

Erik Wilde, Dilan Mahendran, and Brad Andrews: State Management (Cookies)

(2) Abstract

HTTP is a stateless protocol, where each request/response interaction is a separate interaction and there is no protocol support for longer sessions (such as a user logging in and working on a Web site as an identified user). State management refers to mechanisms which provide support for this kind of scenario, the most popular choice for state management are cookies. Another possibility is URI-based state management. The newest option for storing state is HTML5 Web Storage. This lecture is also a glimpse into the world of Representational State Transfer (REST), the Web's fundamental model of handling interaction with resources.



Session

Outline (Session)

  1. Session [8]
  2. Cookie [5]
    1. Third-Party Cookie [3]
  3. Tracking Sessions in Query Strings [3]
  4. HTML5 Web Storage [2]

(4) HTTP and Sessions



(5) Keeping Track of Session State



(6) Keeping Track of Session State



(7) State in HTML or HTTP

State in HTML or HTTP

(8) State in the Server Application

State in the Server Application

(9) State as a Resource

State as a Resource

(10) Stateless Shopping



(11) Reusing Resources

Reusing Resources

Tracking Sessions in Query Strings

Outline (Tracking Sessions in Query Strings)

  1. Session [8]
  2. Cookie [5]
    1. Third-Party Cookie [3]
  3. Tracking Sessions in Query Strings [3]
  4. HTML5 Web Storage [2]

(20) Cookie Support



(21) URI Rewriting



(22) Hidden Form Fields



HTML5 Web Storage

Outline (HTML5 Web Storage)

  1. Session [8]
  2. Cookie [5]
    1. Third-Party Cookie [3]
  3. Tracking Sessions in Query Strings [3]
  4. HTML5 Web Storage [2]

(24) Problems with Cookies



(25) HTML5 Web Storage



Erik Wilde, Dilan Mahendran, and Brad Andrews: State Management (Cookies)

(26) Conclusions



Erik Wilde, Dilan Mahendran, and Brad Andrews: State Management (Cookies)

(27) Administrative Details



2011-07-20 Web Architecture and Information Management [./]
Summer 2011 — INFO 153 (CCN 42509)