Stephen Quinney wrote:

I'm having a problem with Apache2::Cookie (2.05-dev) and mod_perl2
(1.999.23). No matter what order I specify the parameters in for a new
cookie the path always gets set to the value for the domain. Some
sample code:

my $cookie = Apache2::Cookie->new($r,
                                   -name   => $username,
                                   -value  => $session,
                                   -secure => 1,
                                   -domain => '.my.domain.com',
                                   -path   => '/foo/');

$cookie->bake($r);

The cookie set is: username=lGb0fQSynbzgAwIh85pNgInP; path=.my.domain.com; domain=.my.domain.com; secure,
sometimes instead of this I get:

username=HpoX0huDHnTM8JaEsmZNGIJS; path=domain; domain=.my.domain.com; secure,

Which is even weirder.

Any help as to what I'm doing wrong or workarounds if this is a bug
would be appreciated.

Thanks in advance,

Stephen Quinney
This has been fix in the SVN of apreq-dev.  See the archives of this list.

See this checkin:

http://svn.apache.org/viewcvs.cgi?rev=170286&view=rev

--
END ---------------------------------------------------------
   What doesn't kill us can only make us stronger.
              Nothing is impossible.
                                
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
    http://www.liquidityservicesinc.com
       http://www.liquidation.com
       http://www.uksurplus.com
       http://www.govliquidation.com
       http://www.gowholesale.com


Reply via email to