HTTP Cookie(也叫Web cookie或者浏览器Cookie),它保存在用户的浏览器端,并在发出符合设定条件的http请求时会默认提交的一段文本片段

Cookie的实现

  • Cookie是Web Server通过HTTP头信息下发给浏览器的任意的一段文本,浏览器将按照文本中包含的规则将信息缓存在浏览器中,在此后的请求中,浏览器会将符合条件的Cookie提交给Web Server。同时在浏览器允许的情况下,Cookie也可以被JavaScript等脚本设置。

在開發 containerTag 時,原本以為 cookie 是看 server 時間,去看了文件才知道是看客戶端時間https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies

=> When an expiry date is set, the time and date set is relative to the client the cookie is being set on, not the server.


server 可以設定同網域的 cookie 回 response

results matching ""

    No results matching ""