README
1NAME
2 Apache::Session::PHP - glues Apache::Session with PHP::Session
3
4SYNOPSIS
5 use Apache::Session::PHP;
6
7 tie %session, 'Apache::Session::PHP', $sid, {
8 SavePath => '/var/sessions',
9 };
10
11DESCRIPTION
12 Apache::Session::PHP is an adapter of Apache::Session for PHP::Session.
13 It uses following combination of straregies:
14
15 Generate: MD5
16 PHP4 session also uses 32bit session-id, generated by MD5 of random
17 string. So MD5 (default) generation would fit.
18
19 Serialize: PHP
20 uses PHP::Session::Serializer::PHP.
21
22 Lock: Null
23 PHP4 uses exclusive flock for session locking. In Apache::Session,
24 we use Null for locking and Store module executes flock on opening
25 the session file.
26
27 Store: PHP
28 similarto File store, but file naming scheme is slightly different.
29
30NOTE
31 PHP does NOT have distinction between hash and array. Thus PHP::Session
32 restores PHP *array* as Perl *hash*.
33
34 Perl => PHP => Perl
35 array array hash
36
37 Thus if you store array in sessions, what'll come back is hash.
38
39AUTHOR
40 Tatsuhiko Miyagawa <miyagawa@bulknews.net>
41
42 This library is free software; you can redistribute it and/or modify it
43 under the same terms as Perl itself.
44
45SEE ALSO
46 the Apache::Session manpage, the PHP::Session manpage
47
48