CGI::Se...D::incr(3)
π NAME π
okay bestie, you're on the CGI::Se...D::incr(3) page β and it's all about CGI::Session::ID::incr, the CGI::Session ID driver β¨
β¨ SYNOPSIS β¨
use CGI::Session;
$session = CGI::Session->new("id:Incr", undef, {
Directory => '/tmp',
IDFile => '/tmp/cgisession.id',
IDInit => 1000,
IDIncr => 2 });
π¦ DESCRIPTION π¦
So CGI::Session::ID::incr is here to generate auto incrementing Session IDs β that's its whole main character energy, periodt π
Compare it with CGI::Session::ID::md5, where session ids are truly random 32 character long strings. Different vibe entirely, iykyk. CGI::Session::ID::incr expects the following arguments passed to CGI::Session->new() as the third argument π
π IDFile
Location where auto incremented IDs are stored. This attribute is required.
bestie, required means required β do not skip this one π
π IDInit
Initial value of the ID if it's the first ID to be generated. For example, if you want the ID numbers to start with 1000 as opposed to 0, that's where you should set your value. Default is 0.
π IDIncr
How many digits each number should increment by. For example, if you want the first generated id to start with 1000, and each subsequent id to increment by 10, set IDIncr to 10 and IDInit to 1000. Default is 1.
π LICENSING π
For support and licensing information see CGI::Session.
This page is from User Contributed Perl Documentation, perl v5.42.2, dated 2026-07-28, and yes it's the CGI::Se...D::incr(3) manual β bye bestie, go make those IDs increment πβ¨π«Ά
π¦ where this page comes from
- alpine 3.24: perl-cgi-session-doc 4.49-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms