{
    "mode": "perldoc",
    "parameter": "CGI::Session::Driver::db_file",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/CGI%3A%3ASession%3A%3ADriver%3A%3Adb_file/json",
    "generated": "2026-06-11T12:45:37Z",
    "synopsis": "$s = CGI::Session->new(\"driver:dbfile\", $sid);\n$s = CGI::Session->new(\"driver:dbfile\", $sid, {FileName=>'/tmp/cgisessions.db'});",
    "sections": {
        "NAME": {
            "content": "CGI::Session::Driver::dbfile - CGI::Session driver for BerkeleyDB using DBFile\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "$s = CGI::Session->new(\"driver:dbfile\", $sid);\n$s = CGI::Session->new(\"driver:dbfile\", $sid, {FileName=>'/tmp/cgisessions.db'});\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "dbfile stores session data in BerkelyDB file using DBFile - Perl module. All sessions will be\nstored in a single file, specified in *FileName* driver argument as in the above example. If\n*FileName* isn't given, defaults to /tmp/cgisess.db, or its equivalent on a non-UNIX system.\n\nIf the directory hierarchy leading to the file does not exist, will be created for you.\n\nThis module takes a UMask option which will be used if DBFile has to create the database file\nfor you. By default the umask is 0660.\n",
            "subsections": []
        },
        "LICENSING": {
            "content": "For support and licensing information see CGI::Session\n",
            "subsections": []
        }
    },
    "summary": "CGI::Session::Driver::dbfile - CGI::Session driver for BerkeleyDB using DBFile",
    "flags": [],
    "examples": [],
    "see_also": []
}