State Management

Web Architecture [./]
Fall 2008 — INFO 290-03 (CCN 42584)

Erik Wilde, UC Berkeley School of Information
2008-09-18

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

Contents

E. Wilde: State Management

(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 first 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]
  4. Conclusions [1]
Session E. Wilde: State Management

(4) HTTP and Sessions



Session E. Wilde: State Management

(5) Client-Side State



Session E. Wilde: State Management

(6) State in HTML or HTTP

State in HTML or HTTP

Session E. Wilde: State Management

(7) State in the Server Application

State in the Server Application

Session E. Wilde: State Management

(8) State as a Resource

State as a Resource

Session E. Wilde: State Management

(9) Stateless Shopping



Session E. Wilde: State Management

(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]
  4. Conclusions [1]
Cookie-Less State Tracking E. Wilde: State Management

(18) Cookie Support



Cookie-Less State Tracking E. Wilde: State Management

(19) URI Rewriting



Cookie-Less State Tracking E. Wilde: State Management

(20) Hidden Form Fields



Conclusions

Outline (Conclusions)

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

(22) Session for Application State



2008-09-18 Web Architecture [./]
Fall 2008 — INFO 290-03 (CCN 42584)