I'm trying to install Apache::Session in a win32 box and make it work
from Mason Components.
I installed Apache-Session-0.17.1 but it doesn't open the stored
session.

Doing:

$session=Apache::Session::Win32->open($cookie)

always returns undef


Here is the handler.pl session stuff:

    my $cookie = $r->header_in('Cookie');
    $cookie =~ s/SESSION_ID=(\w*)/$1/;
    my $session;
    if (defined $cookie) {
        $session=Apache::Session::Win32->open($cookie)
            or $r->warn("Can't find $cookie in Session");
    };
    if (!defined $session) {
        $session=Apache::Session::Win32->new();
        $r->header_out("Set-Cookie"
                            => "SESSION_ID=".$session->{_ID});
    }
    local *HTML::Mason::Commands::session=\$session;
    $ah->handle_request($r);
    $session->store();

Can you give me a hint about how to handle sessions in win32
with Mason ?

-- 
 ^-^,-----.             mailto:[EMAIL PROTECTED]
 o o       )            http://www.etsetb.upc.es/~frankie
  Y (_ (___(ssss

Reply via email to