Difference between revisions of "Cookies"

From Dreamwidth Notes
Jump to: navigation, search
(add some descriptions and formatting)
 
(3 intermediate revisions by one other user not shown)
Line 9: Line 9:
 
! What/Why
 
! What/Why
 
|-
 
|-
|dreamwidth.org
+
|.dreamwidth.org
 
|BMLschemepref
 
|BMLschemepref
 
|name of preferred sitescheme
 
|name of preferred sitescheme
Line 15: Line 15:
 
|to allow choice of sitescheme while logged out
 
|to allow choice of sitescheme while logged out
 
|-
 
|-
|dreamwidth.org
+
|.dreamwidth.org
 
|langpref
 
|langpref
 
|name of preferred language
 
|name of preferred language
Line 21: Line 21:
 
|[obsolete] set by BML::set_language
 
|[obsolete] set by BML::set_language
 
|-
 
|-
|dreamwidth.org
+
|.dreamwidth.org
 
|ljloggedin
 
|ljloggedin
 
|combination of userid & sessionid
 
|combination of userid & sessionid
 
|see LJ::Session->loggedin_cookie_string
 
|see LJ::Session->loggedin_cookie_string
 
|-
 
|-
|dreamwidth.org
+
|.dreamwidth.org
 +
|ljuniq
 +
|persistent unique ID associated with device/browser
 +
|see LJ/UniqCookie.pm
 +
|-
 +
|.dreamwidth.org
 +
|no_mobile
 +
|set to opt out of mobile view
 +
|see DW/Setting/MobileView.pm
 +
|-
 +
|.www.dreamwidth.org
 
|ljmastersession
 
|ljmastersession
 
|combination of userid, sessionid, & auth
 
|combination of userid, sessionid, & auth
 
|see LJ::Session->master_cookie_string
 
|see LJ::Session->master_cookie_string
 
|-
 
|-
|dreamwidth.org
+
|<username>.dreamwidth.org
|ljuniq
+
|ljdomsess.<username>
|persistent unique ID associated with device/browser
+
|info for session on given user's subdomain
|see LJ/UniqCookie.pm
+
|see LJ::Session->domain_cookie
 +
|-
 +
|.dreamwidth.org
 +
|__cfduid
 +
|hex string
 +
|Probably CloudFlare
 
|-
 
|-
|dreamwidth.org
+
|.dreamwidth.org
 
|__utma
 
|__utma
|
+
|from Google Analytics
|
+
|[https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage more info]
 
|-
 
|-
|dreamwidth.org
+
|.dreamwidth.org
 
|__utmz
 
|__utmz
|
+
|from Google Analytics
|
+
|[https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage more info]
 
|-
 
|-
 
|<username>.dreamwidth.org
 
|<username>.dreamwidth.org
 
|__utma
 
|__utma
|
+
|from Google Analytics
|
+
|[https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage more info]
 
|-
 
|-
 
|<username>.dreamwidth.org
 
|<username>.dreamwidth.org
 
|__utmz
 
|__utmz
|
+
|from Google Analytics
|
+
|[https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage more info]
 
|-
 
|-
 
|}
 
|}

Latest revision as of 21:17, 28 July 2020

Dreamwidth sets cookies in visitors' browsers. This is a list of the cookies that are set, why they are set, and what they do.

This is a work in progress.

Domain Cookie Name Cookie Contents What/Why
.dreamwidth.org BMLschemepref name of preferred sitescheme

(e.g. "tropo-red")

to allow choice of sitescheme while logged out
.dreamwidth.org langpref name of preferred language

(e.g. "en")

[obsolete] set by BML::set_language
.dreamwidth.org ljloggedin combination of userid & sessionid see LJ::Session->loggedin_cookie_string
.dreamwidth.org ljuniq persistent unique ID associated with device/browser see LJ/UniqCookie.pm
.dreamwidth.org no_mobile set to opt out of mobile view see DW/Setting/MobileView.pm
.www.dreamwidth.org ljmastersession combination of userid, sessionid, & auth see LJ::Session->master_cookie_string
<username>.dreamwidth.org ljdomsess.<username> info for session on given user's subdomain see LJ::Session->domain_cookie
.dreamwidth.org __cfduid hex string Probably CloudFlare
.dreamwidth.org __utma from Google Analytics more info
.dreamwidth.org __utmz from Google Analytics more info
<username>.dreamwidth.org __utma from Google Analytics more info
<username>.dreamwidth.org __utmz from Google Analytics more info

Viewing preferences are saved both in the settings and in cookies, and while logged in, the logged-in settings win. (From [info]Fu in #dreamwidth_dev 11 Oct 2011)