https://bugzilla.wikimedia.org/show_bug.cgi?id=41238
Web browser: ---
Bug #: 41238
Summary: ClickTracking userbucket cookie varies with path
Product: MediaWiki extensions
Version: master
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ClickTracking
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
I have two userbuckets cookies, for the paths '/w and '/wiki'' :-(
Here's how I think this happens. The Create Account link on enwiki goes to
http://en.wikipedia.org/w/index.php?title=Special:UserLogin&type=signup
but you can also start at en.wikipedia.org/wiki/Special:UserLogin?&type=signup
, which will set a different cookie (in Firefox) because the path is different.
The form submits to /w/ which gets and sets the other cookie
The fix is is easy
$.cookie('userbuckets', $.toJSON( bucketCookies ) , { expires: 365 });
//expires in 1 year
should be
$.cookie('userbuckets', $.toJSON( bucketCookies ) , { expires: 365, path:
'/' }); //expires in 1 year
but I don't know what happens if you set cookies on parent paths... three
cookies? No doubt the behavior varies between browsers.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l