Package: libcgi-session-perl
Version: 3.95-2
Severity: normal

No session file is being written for my sessions when using the Storable
driver. The following is the session initialisation:

$session = CGI::Session->new("driver:File;serializer:Storable",
$self->query, {Directory=>"/tmp"});

Where $self->query is a valid CGI object.

Many empty /tmp/cgisess_* files get created. Things work fine with the
Default serializer (except being able to save objects in the session,
which is what I want to do).

If I change /usr/share/perl5/CGI/Session/Serialize/Storable.pm to be:

sub freeze {
    my ($self, $data) = @_;

    warn "freezing($data)";
    my $frozen = Storable::freeze($data);
    warn "frozen";
    return $frozen;
}

The first warning is displayed, but not the second:
freezing(HASH(0x10fdaec0)) at 
/usr/share/perl5/CGI/Session/Serialize/Storable.pm line 14 during global 
destruction.

Seems to be something with Storable::freeze, but testing Storable::freeze 
separately works fine.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages libcgi-session-perl depends on:
ii  perl [libdigest-md5-perl]     5.8.7-3    Larry Wall's Practical Extraction 

libcgi-session-perl recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to