Apache::Session::DB_File(3pm) User Contributed Perl Documentation Apache::Session::DB_File(3pm)
Apache::Session::DB_File - An implementation of Apache::Session
| Use Case | Command | Description |
|---|---|---|
| β¨ Start a new session | tie %s, 'Apache::Session::DB_File', undef, { FileName => 'sessions.db', LockDirectory => '/var/lock/sessions' } |
Creates a session and returns an autoβgenerated ID via tied object |
| π Restore an existing session | tie %s, 'Apache::Session::DB_File', $id, { β¦ } |
Loads the session data stored under the given ID |
| πΎ Store data | $s{key} = 'value' |
Assign to the tied hash to persist a value |
| π₯ Retrieve data | my $val = $s{key} |
Read a previously stored value |
| ποΈ Destroy session | tied(%s)->delete |
Removes the session from the database |
| π Release lock | untie %s |
Closes the session and releases the fileβbased lock |
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>.
perl v5.30.3 2020-09-20 Apache::Session::DB_File(3pm)
Generated by phpman v4.9.22-1-g1b0fcb4 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-05 09:08 @216.73.216.52
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-pro / taotoken.net / www.chedong.com - original format