While using cookie() to create a cookie I noticed that max-age parameter was not passed correctly to CGI::Cookie. When reviewing CGI.pm code I noticed the following code in cookie subroutine (line 2796):
push(@param,'-max_age'=>$max_age) if $max_age;
That should be:
push(@param,'-max-age'=>$max_age) if $max_age;
While using cookie() to create a cookie I noticed that max-age parameter was not passed correctly to CGI::Cookie. When reviewing CGI.pm code I noticed the following code in cookie subroutine (line 2796):
push(@param,'-max_age'=>$max_age) if $max_age;
That should be:
push(@param,'-max-age'=>$max_age) if $max_age;