/** * Outputs all the headers for effecting changes in cookies set by Q_Response::setCookies. * This is called automatically by the dispatcher before the Q/response event. * @method sendCookieHeaders * @static */ static function sendCookieHeaders() { if (empty(self::$cookies)) { return; } foreach (self::$cookies as $name => $args) { list($value, $expires, $path) = $args; self::_cookie($name, $value, $expires, $path); } // A reasonable P3P policy for old IE to allow 3rd party cookies. // Consider overriding it with a real P3P policy for your app. $header = 'P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'; $header = Q::event('Q/Response/setCookie', compact('name', 'value', 'expires', 'path', 'header'), 'before', false, $header); header($header); self::$cookies = array(); }