Hi,

I'm trying to set a cookie from within an ASP file, by printing the 
Set-Cookie header (I have CgiHeaders set to 1).  If I follow this header 
with content, I get the following error:

Modification of a read-only value attempted at 
/usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 2969. , 
/usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 1229

However, if I follow it with a Location header, the cookie gets set, and 
the browser redirects without a problem.  If I use $Response->SetHeader in 
the same spot as the print statement, it works fine.  But I can't do this 
because I want to print the Set-Cookie header in a module, and using 
SetHeader would require me to pass the $Response object to the function in 
the module, which I don't want to do.  I've tried this with and without 
BufferingOn without any luck.  This is using Apache::ASP 0.18.  Any ideas?

Thanks,
Brian

Reply via email to