CGI::Session::Driver::db_file(3pm)

CGI::Session::Driver::db_file3pm

Cgi::session driver for berkeleydb using db_file

Usage

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

Overview

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, 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

Releases

11 releases since Debian 4.0 (Etch); the text changed 7 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9–11
  7. 12–13
  8. Arch

From perl-cgi-session 4.49-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.