{
    "content": [
        {
            "type": "text",
            "text": "# CGI::Session::Driver::file (perldoc)\n\n## NAME\n\nCGI::Session::Driver::file - Default CGI::Session driver\n\n## SYNOPSIS\n\n$s = CGI::Session->new();\n$s = CGI::Session->new(\"driver:file\", $sid);\n$s = CGI::Session->new(\"driver:file\", $sid, {Directory=>'/tmp'});\n\n## DESCRIPTION\n\nWhen CGI::Session object is created without explicitly setting *driver*, *file* will be assumed.\n*file* - driver will store session data in plain files, where each session will be stored in a\nseparate file.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **NOTES**\n- **LICENSING**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "CGI::Session::Driver::file",
        "section": "",
        "mode": "perldoc",
        "summary": "CGI::Session::Driver::file - Default CGI::Session driver",
        "synopsis": "$s = CGI::Session->new();\n$s = CGI::Session->new(\"driver:file\", $sid);\n$s = CGI::Session->new(\"driver:file\", $sid, {Directory=>'/tmp'});",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 29,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "LICENSING",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "CGI::Session::Driver::file - Default CGI::Session driver\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "$s = CGI::Session->new();\n$s = CGI::Session->new(\"driver:file\", $sid);\n$s = CGI::Session->new(\"driver:file\", $sid, {Directory=>'/tmp'});\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "When CGI::Session object is created without explicitly setting *driver*, *file* will be assumed.\n*file* - driver will store session data in plain files, where each session will be stored in a\nseparate file.\n\nNaming conventions of session files are defined by $CGI::Session::Driver::file::FileName global\nvariable. Default value of this variable is *cgisess%s*, where %s will be replaced with\nrespective session ID. Should you wish to set your own FileName template, do so before\nrequesting for session object:\n\nuse CGI::Session::Driver::file; # This line is mandatory.\n# Time passes...\n$CGI::Session::Driver::file::FileName = \"%s.dat\";\n$s = CGI::Session->new();\n\nFor backwards compatibility with 3.x, you can also use the variable name\n$CGI::Session::File::FileName, which will override the one above.\n\nDRIVER ARGUMENTS\nIf you wish to specify a session directory, use the Directory option, which denotes location of\nthe directory where session ids are to be kept. If Directory is not set, defaults to whatever\nFile::Spec->tmpdir() returns. So all the three lines in the SYNOPSIS section of this manual\nproduce the same result on a UNIX machine.\n\nIf specified Directory does not exist, all necessary directory hierarchy will be created.\n\nBy default, sessions are created with a umask of 0660. If you wish to change the umask for a\nsession, pass a UMask option with an octal representation of the umask you would like for said\nsession.\n",
                "subsections": []
            },
            "NOTES": {
                "content": "If your OS doesn't support flock, you should understand the risks of going without locking the\nsession files. Since sessions tend to be used in environments where race conditions may occur\ndue to concurrent access of files by different processes, locking tends to be seen as a good and\nvery necessary thing. If you still want to use this driver but don't want flock, set\n$CGI::Session::Driver::file::NoFlock to 1 or pass \"NoFlock => 1\" and this driver will operate\nwithout locks.\n",
                "subsections": []
            },
            "LICENSING": {
                "content": "For support and licensing see CGI::Session\n",
                "subsections": []
            }
        }
    }
}