[Catalyst] Duplicate session ids

Bill Moseley moseley at hank.org
Sat May 26 00:11:13 GMT 2007


I fired up an older application today and couldn't log in.  I've
recently updated this machine, so not sure that's related.

Running Cat 5.7007 with current plugins:
    'Session',
    'Session::Store::FastMmap',
    'Session::State::Cookie',

If I have this in my base class:

    sub finalize_cookies {
        my $c = shift;
        $c->session->{foo};
        return $c->NEXT::finalize_cookies( @_ );
    }

Then I see this:

    [debug] "GET" request for "foo" from "192.168.1.2"
    [debug] Path is "foo"
    [debug] Created session "c60bac05b858475180fd7ec87c136f39a0d864e5"
    [debug] Created session "cb18f99367411577cf491e5d4b623704c177f1b4"

If I remove the $c->session{whatever} then I get:

    sub finalize_cookies {
        my $c = shift;
        return $c->NEXT::finalize_cookies( @_ );
    }


    [debug] "GET" request for "foo" from "192.168.1.2"
    [debug] Path is "foo"
    [debug] Created session "3c23e190850ca9854d893f93b6ea20148fc24d61"


Wasn't there some issue with FastMmap recently?  I tried with 1.15 and
1.16.

1.16 didn't pass all tests:

t/6.....NOK 6                                                                
#   Failed test 'leak test 128 > 30k'
#   in t/6.t at line 81.
t/6.....ok 9/9# Looks like you failed 1 test of 9.                           
t/6.....dubious                                                              
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 6
        Failed 1/9 tests, 88.89% okay
t/7.....ok



-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list