7;modperl@perl.apache.org'
Subject: Re: Overwriting a cookie in request header
Oops... forgot ending right-paren to add().
Replace (in all examples):
. "; domain=$domain";
with:
. "; domain=$domain");
^_^
--
Devin
On Tue, 2009-11-17 at 07:31 -0800, Devin Tes
Oops... forgot ending right-paren to add().
Replace (in all examples):
. "; domain=$domain";
with:
. "; domain=$domain");
^_^
--
Devin
On Tue, 2009-11-17 at 07:31 -0800, Devin Teske wrote:
> Try this:
>
> use CGI::Util;
> my $domain = "mydomain.com";
> # Add cookie to HTTP re
Try this:
use CGI::Util;
my $domain = "mydomain.com";
# Add cookie to HTTP response
$r->err_headers_out->add("Set-Cookie" =>
"cookie_name=cookie_value"
. "; path=/"
. "; expires="
. &CGI::Util::expires('+60m', 'cookie');
. "; domain=$domain";
This will crea