Last modified: 2011-08-11 14:41:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32313, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30313 - ability to override cookie domain
ability to override cookie domain
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-10 19:36 UTC by Antoine "hashar" Musso (WMF)
Modified: 2011-08-11 14:41 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
override cookie domain (1.05 KB, text/plain)
2011-08-10 19:36 UTC, Antoine "hashar" Musso (WMF)
Details
override cookie domain (1.24 KB, patch)
2011-08-11 11:04 UTC, Antoine "hashar" Musso (WMF)
Details

Description Antoine "hashar" Musso (WMF) 2011-08-10 19:36:02 UTC
Created attachment 8904 [details]
override cookie domain

In WebResponse, it is sometimes needed to override the default cookie domain ($wgCookieDomain).

The attached patch purpose a method to have the domain set up on a one time basis. Example usage:

$wgRequest->response()->withDomain( 'wikipedia.org' )->setCookie();
Comment 1 Antoine "hashar" Musso (WMF) 2011-08-11 11:04:45 UTC
Created attachment 8906 [details]
override cookie domain

Update patch with some comments.
Comment 2 Mark A. Hershberger 2011-08-11 14:38:54 UTC
r94211
Comment 3 Chad H. 2011-08-11 14:41:04 UTC
I didn't actually use that patch, so -reviewed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links