Can someone confirm... or it is just me having this problem
It seems that if an action sets a cookie
$this->getResponse()->setCookie('foo', 'bar');
and redirects
$this->redirect('@some_route');
the cookie will never be actually be sent with the header.
Looking at the code of sfController::redirect
public function redirect($url, $delay = 0, $statusCode = 302)
{
$url = $this->genUrl($url, true);
if (sfConfig::get('sf_logging_enabled'))
{
$this->dispatcher->notify(new sfEvent($this, 'application.log',
array(sprintf('Redirect to "%s"', $url))));
}
// redirect
$response = $this->context->getResponse();
$response->clearHttpHeaders();
$response->setStatusCode($statusCode);
$response->setHttpHeader('Location', $url);
$response->setContent(sprintf('<html><head><meta http-
equiv="refresh" content="%d;url=%s"/></head></html>', $delay,
htmlspecialchars($url, ENT_QUOTES, sfConfig::get('sf_charset'))));
$response->send();
}
all headers are actually stripped? Im wondering if this is also the
cause why the remember me filter of sfGuardPlugin doesnt work.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---