info > CGI::Session::Driver::db_file

πŸ“„ CGI::Session::Driver::db_file(3pm)

🏷️ NAME

CGI::Session::Driver::db_file β€” CGI::Session driver for BerkeleyDB using DB_File

πŸš€ Quick Reference

Use CaseCommandDescription
Create session with default file$s = CGI::Session->new("driver:db_file", $sid);Opens session in /tmp/cgisess.db
Specify custom database file$s = CGI::Session->new("driver:db_file", $sid, {FileName => '/tmp/cgisessions.db'});Store sessions in a custom path
Set umask for file creation$s = CGI::Session->new("driver:db_file", $sid, {FileName => '...', UMask => 0660});Default umask is 0660

πŸ“‹ SYNOPSIS

$s = CGI::Session->new("driver:db_file", $sid);
$s = CGI::Session->new("driver:db_file", $sid, {FileName=>'/tmp/cgisessions.db'});

πŸ“ DESCRIPTION

db_file stores session data in BerkelyDB file using DB_File β€” Perl module. All sessions will be stored in a single file, specified in FileName driver argument as in the above example. If FileName isn't given, defaults to /tmp/cgisess.db, or its equivalent on a non‑UNIX system.

If the directory hierarchy leading to the file does not exist, it will be created for you.

This module takes a UMask option which will be used if DB_File has to create the database file for you. By default the umask is 0660.

πŸ“œ LICENSING

For support and licensing information see CGI::Session.


Enhanced with emoji by AI. Original man page: CGI::Session::Driver::db_file(3pm) from perl v5.22.1, 2016‑01‑15.

CGI::Session::Driver::db_file
πŸ“„ CGI::Session::Driver::db_file(3pm) 🏷️ NAME πŸš€ Quick Reference πŸ“‹ SYNOPSIS πŸ“ DESCRIPTION πŸ“œ LICENSING

Generated by phpman v4.9.26-1-g511901d Author: Che Dong Under GNU General Public License
2026-08-09 10:25 @2600:1f28:365:80b0:50b3:453e:ff52:20f7
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format