RE: Overwriting a cookie in request header

2009-11-17 Thread Sinha, Ritu
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

Re: Overwriting a cookie in request header

2009-11-17 Thread Devin Teske
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

Re: Overwriting a cookie in request header

2009-11-17 Thread Devin Teske
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

Overwriting a cookie in request header

2009-11-17 Thread Sinha, Ritu
I have an Apache module in which I am trying to overwrite the value of a cookie. I have tried different methods of the APR::Table without success. Here are the approaches that I have tried: [1] $r->headers_out->set("Set-Cookie", $cookie); Here, $cookie has the name=value pair with the name of th