cookies how can apps maintain user state cookies
play

COOKIES How can apps maintain user state? Cookies! small bits of - PowerPoint PPT Presentation

CS 498RK FALL 2017 COOKIES How can apps maintain user state? Cookies! small bits of data downloaded to your computer so that a site can remember you and what you did on subsequent visits Browser Server first request http:/


  1. CS 498RK FALL 2017 COOKIES

  2. How can apps maintain user state?

  3. Cookies! small bits of data downloaded to your computer so that a site can “remember” you and what you did on subsequent visits

  4. Browser Server first request http:/ /www.example.org response + request +

  5. HOW THEY WORK uniquely assigned to you and your computer can be read only by a Web server in the domain that issued the cookie to you new browser, di ff erent computer, delete cookies? 1st time user

  6. ARE THEY SAFE? cookies are bits of text not so fu ware cannot read information, run programs, or install so fu ware

  7. but what if I don’t like cookies… Most browsers are set to accept cookies automatically Modify browser settings to block cookies or ask for approval Blocking cookies can interfere with site usability

  8. Uses

  9. SESSION MANAGEMENT Remember a user as they navigate through site Unique session identifier sent to the server Site database stores user’s personal information Used to remember an authenticated user

  10. PERSONALIZATION experience for visitors who experience for visitors in previously browsed shoes cold weather locations https://www.optimizely.com/products/personalization/

  11. TRACKING Track user behavior on site what they do, how o fu en they come back, etc. V I S I T build up server logs for each user

  12. Types

  13. SESSION COOKIES exists only in temporary memory while the user navigates the website deleted when user closes the browser (no expiration date)

  14. PERSISTENT COOKIES transmitted to the server every time the user visits the website that it belongs to or every time the user views a resource belonging to that website from another website (tracking) expires at a specific date or a fu er a specific length of time

  15. THIRD-PARTY COOKIES Set when retrieving components on a web page that are stored on servers in other domains Allows advertising companies to track users across multiple sites

  16. WEB BEACONS web bug, tracking bug, page tag, tag implemented through embedded image: tracking pixel, pixel tag, 1x1 gif, clear gif phones home (usually used with cookies)

  17. Implementation

  18. Client’s First Request to a Site GET /index.html HTTP/1.1 Host: www.example.org … https://en.wikipedia.org/wiki/HTTP_cookie

  19. Server Response HTTP/1.0 200 OK Session Cookie Content-type: text/html Set-Cookie: theme=light Set-Cookie: sessionToken=abc123; Expires=Wed, 09 Jun 2021 10:18:14 GMT … Persistent Cookie https://en.wikipedia.org/wiki/HTTP_cookie

  20. Client Request to Another Page On Site GET /spec.html HTTP/1.1 Host: www.example.org Cookie: theme=light; sessionToken=abc123 … https://en.wikipedia.org/wiki/HTTP_cookie

  21. how do you feel about cookies?

  22. CLIFFHANGER Security concerns… V I S I T

  23. NEXT CLASS: PASSPORT LAB courses.engr.illinois.edu/cs498rk1/

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend