Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
When setting a cookie, I can't seem to get other EXPIRE formats to work. If I try +1m, it doesn't seem to accept my cookie if I reload the screen the second after I sign in. Same thing goes with +24h or +10h or +1d or +10d, the cookie doesn't stick.my $cookie = cookie( -NAME=> $cookie, -VALUE=> $pw, -EXPIRES => "+24h", ); print header(-COOKIE => $cookie, -expires=>'now');
The only one that I can find that works is +1year, this DOES work while nothing else does. Can anyone explain to me why this might be? I really don't want to have to login just once a year, I'd rather it be once per few hours OR they have to login whenever they close the browser window.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cookie setting
by b10m (Vicar) on Feb 02, 2004 at 16:47 UTC | |
|
Re: cookie setting
by bkiahg (Pilgrim) on Feb 02, 2004 at 16:50 UTC | |
|
Re: cookie setting
by borisz (Canon) on Feb 02, 2004 at 16:36 UTC |