man > Apache::Session::DB_File

Apache::Session::DB_File(3pm) User Contributed Perl Documentation Apache::Session::DB_File(3pm)

πŸ“› NAME

Apache::Session::DB_File - An implementation of Apache::Session

πŸš€ Quick Reference

Use CaseCommandDescription
✨ 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

πŸ“– SYNOPSIS

 use Apache::Session::DB_File;

 tie %hash, 'Apache::Session::DB_File', $id, {
    FileName      => 'sessions.db',
    LockDirectory => '/var/lock/sessions',
 };

πŸ“˜ DESCRIPTION

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.

✍️ AUTHOR

This module was written by Jeffrey William Baker <jwbaker AT acm.org>.

πŸ”— SEE ALSO

perl v5.30.3                                  2020-09-20                  Apache::Session::DB_File(3pm)

Apache::Session::DB_File
πŸ“› NAME πŸš€ Quick Reference πŸ“– SYNOPSIS πŸ“˜ DESCRIPTION ✍️ AUTHOR πŸ”— SEE ALSO

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)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-pro / taotoken.net / www.chedong.com - original format