Apache::Session is a persistence framework which is particularly useful for tracking session data between httpd requests. Apache::Session is designed to work with Apache and mod_perl, but it should work under CGI and other web servers, and it also works outside of a web server altogether.
Apache::Session consists of five components: the interface, the object store, the lock manager, the ID generator, and the serializer. The interface is defined in Session.pm, which is meant to be easily subclassed. The object store can be the filesystem, a Berkeley DB, a MySQL DB, an Oracle DB, a Postgres DB, Sybase, or Informix. Locking is done by lock files, semaphores, or the locking capabilities of the various databases. Serialization is done via Storable, and optionally ASCII-fied via MIME or pack(). ID numbers are generated via MD5. The reader is encouraged to extend these capabilities to meet his own requirements.
A derived class of Apache::Session is used to tie together the three following components. The derived class inherits the interface from Apache::Session, and specifies which store and locker classes to use. Apache::Session::MySQL, for instance, uses the MySQL storage class and also the MySQL locking class. You can easily plug in your own object store or locker class.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
1.94-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
1.94-bp155.2.10 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
1.94-bp154.1.21 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
1.93-bp153.1.15 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
1.93-bp152.3.15 info | GA Release | 2020-04-16 | 15 SP2 |
|
|
1.93-bp151.3.1 info | GA Release | 2019-07-16 | 15 SP1 |
|
|
1.93-bp151.2.14 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
1.93-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|