Don't ask to ask, just ask | |
PerlMonks |
Re: Re: chop and CGI.pm cookie problem?by michellem (Friar) |
on Jul 31, 2003 at 19:30 UTC ( [id://279740]=note: print w/replies, xml ) | Need Help?? |
Um, I'm missing something here.
$meta_configs{login_cookie_expiration} is going to hold something like 15m, or 1d, or 3h.
So if I chop that, I should get: $time_frame = "d" or "h" or "m" and $meta_configs{login_cookie_expiration} = some_numeric_value that I use to figure out expiration. I never use that variable again after this routine, so destroying it is of no consequence. And, if I do the following:
(and replace $exp in the place of the meta_config variable in the later lines), I get the same problem. Also, the default (if, for some reason, the meta_config variable is kerfluxed) is to set an expiration date of one hour, and return to the main routine, so worst case scenario should simply be 1 hour expirations for the session, not no cookies set.
In Section
Seekers of Perl Wisdom
|
|