May 26, 2018

Extented persistence framework for session data

ApacheSessionX extents ApacheSession. It was initialy written to use ApacheSession from inside of HTMLEmbperl, but is seems to be usefull outside of Embperl as well, so here is it as standalone module.

ApacheSession is a persistence framework which is particularly useful for tracking session data between httpd requests. ApacheSession 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.

ApacheSession consists of five components the interface, the object store, the lock manager, the ID generator, and the serializer. The interface is defined in, which is meant to be easily subclassed. The object store can be the filesystem, a Berkeley DB, a MySQL DB, an Oracle DB, or a Postgres DB. Locking is done by lock files, semaphores, or the locking capabilities of MySQL and Postgres. 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.

WWW http//