Hello,
I am porting some code to 2.06 and came across this:
$cookie = Apache2::Cookie->new($self->request,
-name => $name,
-value => '',
-path => '/',
-domain => $self->site->server,
-expires => '-1s');
$cookie->bake($self->request);
The purpose of the above is to clear out the cookie at the browser.
The not so happy result of which is:
[Mon Dec 12 15:13:26 2005] [error] [client 127.0.0.1] Assertion
((RETVAL)->sv_flags
& 0xff) >= SVt_PV failed: file "Request.xs", line 58 at
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/Apache2/Cookie.pm
line 59.
\n, referer: http://test.example.com/
I don't know if it's permissible by the relevant standards to have a cookie
with a
value which is an empty string, but I would suggest that there might be a better
way to handle it instead of the above log line.
When I tried to create the cookie with 'undef', I got back 'undef' which seemed
reasonable. Maybe the empty string should do the same?
Thanks for your efforts,
Michael