[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Safari not accepting cookie expire time set in session_config


Here's a weird one. Until recently Safari on Mac would set a cookie expire
time of whatever I had it set in session_config. Out-of-the-blue it stopped
doing this and no matter what expire time I try to set it to, it defaults to
1 hour. The old CGI cookie method works fine, it's CAP::Session that is a
problem. All other browsers are fine either way.

Does anybody know of a Safari problem with CAP::Session cookies?

#---does not work
$self->session_config(
   DEFAULT_EXPIRY => '+8h',
   COOKIE_PARAMS  => { -expires => '+8h'  }
);


#---works fine
my $c = new CGI::Cookie(
   -name    =>  'HCCSESSIONTEST',
   -value   =>  '12341234',
   -expires =>  '+8h'
);
print "Set-Cookie: $c\n";
print "Content-Type: text/html\n\n";


Thanks!
Brad



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.