| Apache-Session-PHP documentation | Contained in the Apache-Session-PHP distribution. |
Apache::Session::Serialize::PHP - uses PHP::Session to serialize session
DO NOT USE THIS MODULE DIRECTLY
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.
| 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__