[Web]HTTP cookies
Using HTTP cookies 閱讀 資料來源︰ https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies An HTTP cookie (web cookie, browser cookie) is a small piece of data that a server sends to the user's web browser. The browser may store it and send it back with later requests to the same server. Typically, it's used to tell if two requests came from the same browser — keeping a user logged-in, for example. It remembers stateful information for the stateless HTTP protocol. http cookie是從server端發送到user端的瀏覽器的一小段data。瀏覽器會儲存它並將它和以後的requests一起發送回同一的server端。一般來說,它是被用來判斷兩個requests是否來自同一個瀏覽器---保持用戶登入狀。舉例來說,他在stateless http protocol 記住 stateful information。 Cookie主要有3個目的︰ Session management 通訊管理 Logins, shopping carts, game scores, or anything else the server should remember Personalization 個性化 User preferences, themes, and other settings Tracking 追蹤 Recording and analyzing user behavior 記錄與分析用戶行為 ...