Hi,
I had the same problem the server not sending any cookies.
I don't think it has got to do with the 403 STATUS code:
My Code contains:
# add cookie file to HTTP header
$r->err_headers_out->add('Set-Cookie' => $cookie);
$r->no_cache(1);
# trigger 403 ErrorDocument redirect
return
FORBIDDEN;
My problem was that I tested my handler with the following URL in the
browser:
http://<hostname>/...
omitting the Domain that I previously set in the cookie.
Altering the URL to
http://<hostname>.<domain>.<...>/...
does the trick for me.
Ciao
Axel