Using err_header_out worked :)

$r->content_type('text/html');  
$r->err_header_out('Set-Cookie' => $cookie); 
$r->err_header_out('Location' => $the_url); 
return REDIRECT; 

Reply via email to