WDD_lec_31 - Session Tracking Lec 31 Revisiting Session...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Session Tracking Lec 31 Revisiting Session Tracking HTTP is a stateless protocol Every request is considered independent of every other request Many web applications need to maintain a conversational state with the client A shopping cart is a classic example Store State Somewhere Server Side? Makes Server Really Complicated State per client! Client Side? “Post-Notes” Server puts little notes on the client side When client submits the next form, it also (unknowingly) submits these little notes Server reads the notes, remembers who the client is Three Typical Solutions Cookies URL Rewriting Hidden Fields Handling Cookies Potential of Cookies Idea Web server sends a simple name-value pair to client (web browser etc.) Saved by the client Later, Client returns same name and value when it connects to same site (or same domain, depending on cookie settings) Potential of Cookies Typical Uses of Cookies Identifying a user during an e-commerce session Servlets have a higher-level API for this task Avoiding username and password Customizing a site Focused advertising Sending Cookies to Browser...
View Full Document

This note was uploaded on 07/01/2010 for the course CS CS506 taught by Professor mr. umair javed during the Spring '10 term at Virtual University of Pakistan.

Page1 / 23

WDD_lec_31 - Session Tracking Lec 31 Revisiting Session...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online