GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Apache::Session::PHP(3) User Contributed Perl Documentation Apache::Session::PHP(3)

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:
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.

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
2004-02-02 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.