Basel, Sonntag, 25. November 2001, 22:29:49 .....................................
*Problem with Appache::Cookie -expires* Environment: Apache 1.3.22 / Perl 5.6.1 / mod_perl 1.26 /HTML::Mason 1.04 on MSWin32 I've tied up the session to MySQL with Apache::Session by running one handler negotiating all the cookies. Some cookies expire some not depending on a 'sessionarea' ... using CGI::Cookie everything is fine. I read when I switch to ... use HTML::Mason::ApacheHandler (args_method=>'mod_perl'); ... I use Apache::Cookie. As long I don't state anywhere -expires everything is the same and fine. As soon I write ... my $cookie = Apache::Cookie->new ( $r, -name => "AF_SID_$sessionarea", -value => $session->{$sessionarea}->{_session_id}, -path => "/"); $cookie->expires($sessiontimeout) if $sessiontimeout; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ $cookie->bake; ... the cookie is properly written on the disk, but seems to have problems to be retrieved. I used ... my $cookies = Apache::Cookie->new($r)->parse; or my $cookies = Apache::Cookie->fetch; ... but with both, as soon the -expires is called !nada!niet! no cookie existing in HTTP_COOKIE. I don't know if I should look deeper into HTML::Mason::ApacheHandler, which serves the $r, or into Apache::Cookie ... Apache::MyConfig? And all this without an error in any log? :-) it's said it is faster ... I already spent a day on it Best Regards C.Hauser - [EMAIL PROTECTED] - .....................................