You have to include the cookie in the response header, e.g. with $cgi->header( -cookie => $new_cookie_product ) (where $cgi is your CGI.pm or CGI::Simple object), or $req->headers_out->add('Set-Cookie' => $new_cookie_product) (where $req is your Apache/mod_perl request object).
Update: use err_headers_out (as suggested by lihao) instead of headers_out, if you want to preserve the cookie on errors / internal redirects.
___
P.S. please put <c> ... </c> tags around your code section (this preserves indentation, handles PM-special characters like [] properly, etc...)
In reply to Re: CGI:Cookie, Apache2, Mod_perl2
by almut
in thread CGI:Cookie, Apache2, Mod_perl2
by overworked
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |