Apache::Session::DB_File — An implementation of Apache::Session
| Use Case | Command | Description |
|---|---|---|
| 🧩 Tie a session hash | tie %hash, 'Apache::Session::DB_File', $id, { FileName => 'sessions.db', LockDirectory => '/var/lock/sessions' } | Create and bind a persistent session using DB_File with file locking |
| 📂 Use with default arguments | tie %hash, 'Apache::Session::DB_File', $id | Minimal usage – FileName and LockDirectory must be provided elsewhere or defaults will be attempted |
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>.
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-16 10:08 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)