NAME
PHP::Session - read / write PHP session files
SYNOPSIS
use PHP::Session;
my $session = PHP::Session->new($id);
# session id
my $id = $session->id;
# get/set session data
my $foo = $session->get('foo');
$session->set(bar => $bar);
# remove session data
$session->unregister('foo');
# remove all session data
$session->unset;
# check if data is registered
$session->is_registerd('bar');
# save session data
$session->save;
DESCRIPTION
PHP::Session provides a way to read / write PHP4 session files, with which you can make your Perl application session shared with PHP4.
NOTES
Array in PHP is hash in Perl.
Objects in PHP are deserialized as hash reference, blessed into PHP::Session::Object (Null class).
Locking when save()ing data is acquired via exclusive flock, same as PHP implementation.
TODO
WDDX support, using WDDX.pm
Apache::Session::PHP
AUTHOR
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.