{
    "mode": "perldoc",
    "parameter": "CGI::Session::ID::incr",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/CGI%3A%3ASession%3A%3AID%3A%3Aincr/json",
    "generated": "2026-06-14T07:57:09Z",
    "synopsis": "use CGI::Session;\n$session = CGI::Session->new(\"id:Incr\", undef, {\nDirectory   => '/tmp',\nIDFile      => '/tmp/cgisession.id',\nIDInit      => 1000,\nIDIncr      => 2 });",
    "sections": {
        "NAME": {
            "content": "CGI::Session::ID::incr - CGI::Session ID driver\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use CGI::Session;\n$session = CGI::Session->new(\"id:Incr\", undef, {\nDirectory   => '/tmp',\nIDFile      => '/tmp/cgisession.id',\nIDInit      => 1000,\nIDIncr      => 2 });\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "CGI::Session::ID::incr is to generate auto incrementing Session IDs. Compare it with\nCGI::Session::ID::md5, where session ids are truly random 32 character long strings.\nCGI::Session::ID::incr expects the following arguments passed to CGI::Session->new() as the\nthird argument.\n\nIDFile\nLocation where auto incremented IDs are stored. This attribute is required.\n\nIDInit\nInitial value of the ID if it's the first ID to be generated. For example, if you want the\nID numbers to start with 1000 as opposed to 0, that's where you should set your value.\nDefault is 0.\n\nIDIncr\nHow many digits each number should increment by. For example, if you want the first\ngenerated id to start with 1000, and each subsequent id to increment by 10, set *IDIncr* to\n10 and *IDInit* to 1000. Default is 1.\n",
            "subsections": []
        },
        "LICENSING": {
            "content": "For support and licensing information see CGI::Session\n",
            "subsections": []
        }
    },
    "summary": "CGI::Session::ID::incr - CGI::Session ID driver",
    "flags": [],
    "examples": [],
    "see_also": []
}