[buddypress-trac] [BuddyPress Trac] #7856: Privacy: Review of cookie behavior
buddypress-trac
noreply at wordpress.org
Sat Jun 23 19:10:40 UTC 2018
#7856: Privacy: Review of cookie behavior
-----------------------------+---------------------
Reporter: boonebgorges | Owner: (none)
Type: task | Status: new
Priority: normal | Milestone: 4.0
Component: Core | Version:
Severity: normal | Resolution:
Keywords: early has-patch |
-----------------------------+---------------------
Changes (by boonebgorges):
* keywords: => early has-patch
Comment:
[attachment:7856.diff] is a first pass at refactoring the 'bp-x-scope' etc
cookies. The basic idea is this:
- Only set the cookies for logged in users, but this behavior is
configurable
- In addition to the cookies, all users will have their "preferences"
stored in a JS variable, so that it'll persist for the pageload
- When fetching the "preferences" in order to set up the page or send the
AJAX request, first try grabbing from the cookie (if cookie storage is
enabled) but otherwise pull from the local JS variable
There could be edge cases not yet covered by this, but I think the general
idea is correct. Could I get another set of eyes?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7856#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list