hi,
Using CGI.pm you can:
print header(-COOKIE => $cookie);
Remember cookies must go out with the header and BEFORE anything else
is printed, even white space.
On Mon, Feb 14, 2000 at 11:31:28AM +0100, Francesco Marsoni wrote:
> 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