Apache::Session::Serialize::PHP - uses PHP::Session to serialize session


Apache-Session-PHP documentation Contained in the Apache-Session-PHP distribution.

Index


Code Index:

NAME

Top

Apache::Session::Serialize::PHP - uses PHP::Session to serialize session

SYNOPSIS

Top

DO NOT USE THIS MODULE DIRECTLY

AUTHOR

Top

Tatsuhiko Miyagawa <miyagawa@bulknews.net>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Top

Apache::Session::PHP, PHP::Session::Serializer::PHP


Apache-Session-PHP documentation Contained in the Apache-Session-PHP distribution.

package Apache::Session::Serialize::PHP;

use strict;
use vars qw($VERSION);
$VERSION = 0.03;

use PHP::Session::Serializer::PHP;

sub serialize {
    my $session = shift;
    my $serializer = PHP::Session::Serializer::PHP->new;
    $session->{serialized} = $serializer->encode($session->{data});
}

sub unserialize {
    my $session = shift;
    my $serializer = PHP::Session::Serializer::PHP->new;
    $session->{data} = $serializer->decode($session->{serialized});
}

1;
__END__