State Management (Cookies)

Web Architecture and Information Management [./]
Spring 2009 — INFO 190-02 (CCN 42509)

Erik Wilde, UC Berkeley School of Information
2009-03-04

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 E. Wilde: State Management (Cookies)

Contents

E. Wilde: 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. This lecture is 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 [7]
  2. Cookie [4]
    1. Third-Party Cookie [2]
  3. Cookie-Less State Tracking [3]
Session E. Wilde: State Management (Cookies)

(4) HTTP and Sessions



Session E. Wilde: State Management (Cookies)

(5) Client-Side State



Session E. Wilde: State Management (Cookies)

(6) State in HTML or HTTP

State in HTML or HTTP

Session E. Wilde: State Management (Cookies)

(7) State in the Server Application

State in the Server Application

Session E. Wilde: State Management (Cookies)

(8) State as a Resource

State as a Resource

Session E. Wilde: State Management (Cookies)

(9) Stateless Shopping



Session E. Wilde: State Management (Cookies)

(10) Reusing Resources

Reusing Resources

Cookie-Less State Tracking

Outline (Cookie-Less State Tracking)

  1. Session [7]
  2. Cookie [4]
    1. Third-Party Cookie [2]
  3. Cookie-Less State Tracking [3]
Cookie-Less State Tracking E. Wilde: State Management (Cookies)

(18) Cookie Support



Cookie-Less State Tracking E. Wilde: State Management (Cookies)

(19) URI Rewriting



Cookie-Less State Tracking E. Wilde: State Management (Cookies)

(20) Hidden Form Fields



E. Wilde: State Management (Cookies)

(21) Conclusions



2009-03-04 Web Architecture and Information Management [./]
Spring 2009 — INFO 190-02 (CCN 42509)