Hello.
I'm trying to write an access handler for Apache - mod_perl
Inside the handler sub I would like to send a cookie if the access is forbidden. But the following lines doesn't work:
 
 $r->err_headers_out->add('Set-Cookie' => $cookie);
 return FORBIDDEN;
 
when FORBIDDEN is returned no cookie is sent. I found this way to send cookies with mod_perl somewhere in the web.
Does anyone know where's the problem? Or is there another way to send it?
Thx
Francesco

Reply via email to