Apache::Session::DB_File — An implementation of Apache::Session
| Use Case | Command | Description |
|---|---|---|
| Initialize a session tied to a DB file | tie %hash, 'Apache::Session::DB_File', $id, { FileName => 'sessions.db', LockDirectory => '/var/lock/sessions' } |
🔗 Ties a Perl hash to a session stored in a Berkeley DB file using file-based locking. |
| Specify the database file path | FileName => 'path/to/sessions.db' |
📁 Mandatory argument to define the DB_File database path. |
| Specify the lock directory | LockDirectory => '/var/lock/sessions' |
📂 Mandatory argument to define where lock files are stored. |
use Apache::Session::DB_File;
tie %hash, 'Apache::Session::DB_File', $id, {
FileName => 'sessions.db',
LockDirectory => '/var/lock/sessions',
};
This module is an implementation of Apache::Session. It uses the 🗄️ DB_File backing store and the 🔒 File locking scheme. You must specify the 📁 filename of the database file and the 📂 directory for locking in arguments to the constructor. See the example, and the documentation for Apache::Session::Store::DB_File and Apache::Session::Lock::File.
This module was written by Jeffrey William Baker <jwbaker AT acm.org>.
Apache::Session::FileApache::Session::FlexApache::Session::MySQLApache::Session::PostgresApache::Sessionperl v5.30.3 2020-09-20 Apache::Session::DB_File(3pm)
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-27 14:46 @216.73.216.67
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)