Improve WebResponse::setcookie
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 6 Aug 2013 20:04:15 +0000 (16:04 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 7 Aug 2013 21:43:06 +0000 (17:43 -0400)
commit54bf87d3463e62aad762378423090b5b12a49d1b
tree5fd5c49d10adabf8b49ff655d1efb481d7b24fd5
parent2cb47fc70791357deb112b5b52548c7f7fc27675
Improve WebResponse::setcookie

Various bits of code are not using this because it doesn't support
various use cases, e.g. session cookies, httpOnly, custom paths, etc.

Refactor it to add all those options. Also add a hook so extensions can
override the setting of the cookie.

Change-Id: Ia0c424a48d9455a8574d91631cde0f00c9882288
RELEASE-NOTES-1.22
docs/hooks.txt
includes/EditPage.php
includes/User.php
includes/WebResponse.php