You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tatsuhiko Miyagawa <mi...@edge.co.jp> on 2002/03/26 19:32:00 UTC
[ANNOUNCE] PHP::Session 0.06 & Apache::Session::PHP
Announcing the update of PHP::Session and yet another module of nightmare.
You can download 'em from http://bulknews.net/lib/archives/ and CPAN.
NAME
Apache::Session::PHP - glues Apache::Session with PHP::Session
SYNOPSIS
use Apache::Session::PHP;
tie %session, 'Apache::Session::PHP', $sid, {
SavePath => '/var/sessions',
};
DESCRIPTION
Apache::Session::PHP is an adapter of Apache::Session for PHP::Session.
It uses following combination of straregies:
Generate: MD5
PHP4 session also uses 32bit session-id, generated by MD5 of random
string. So MD5 (default) generation would fit.
Serialize: PHP
uses PHP::Session::Serializer::PHP.
Lock: Null
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.
Store: PHP
similarto File store, but file naming scheme is slightly different.
NOTE
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.
AUTHOR
Tatsuhiko Miyagawa <mi...@bulknews.net>
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
SEE ALSO
the Apache::Session manpage, the PHP::Session manpage
--
Tatsuhiko Miyagawa