You're right. It should cause problems. However, the reason why chop is causing a problem is that you are thrashing $meta_configs{login_cookie_expiration} so that it is missing the last character. In other words, your expires option is invalid. Check out CGI for more info on what is acceptable for the expires field of the cookie. If you were to follow the my $time_frame = chop($meta_configs{login_cookie_expiration}); line with $meta_configs{login_cookie_expiration}) .= $time_frame; it should work as expected.
Hope this helps.
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
In reply to Re: chop and CGI.pm cookie problem?
by antirice
in thread chop and CGI.pm cookie problem?
by michellem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |