Elgg/Elgg — pull request #263 by ewinslow (2012-06-03 07:14:34+00:00)
Title: Fixes #4560: Adds `init:cookie,name` event before calls to setcookie

init:cookie is the event so that certain hooks could listen for instantiation of all cookies with elgg_register_event_handler('init:cookie', 'all', '...'); This is useful for example in case a site wants every last cookie to have the secure bit set.

New class ElggCookie just provides a clear interface for what fields are settable.

Also adds some docs to settings.example.php to explain how to set up session cookies appropriately for their site. This must be in settings.example.php because session cookie values cannot be set by plugins since plugins do not run early enough in the boot process.