Apache::Session::PHP - glues Apache::Session with PHP::Session
use Apache::Session::PHP; tie %session, 'Apache::Session::PHP', $sid, { SavePath => '/var/sessions', };
Apache::Session::PHP is an adapter of Apache::Session for PHP::Session. It uses following combination of strategies:
PHP4 session also uses 32bit session-id, generated by MD5 of random string. So MD5 (default) generation would fit.
uses PHP::Session::Serializer::PHP.
PHP4 uses exclusive flock for session locking. In Apache::Session, we use Null for locking and Store module executes flock on opening the session file.
similarto File store, but file naming scheme is slightly different.
PHP does NOT have distinction between hash and array. Thus PHP::Session restores PHP array as Perl hash.
Perl => PHP => Perl array array hash
Thus if you store array in sessions, what'll come back is hash.
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::Session
To install Apache::Session::PHP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Session::PHP
CPAN shell
perl -MCPAN -e shell install Apache::Session::PHP
For more information on module installation, please visit the detailed CPAN module installation guide.