1CGI::Session::ID::incr(U3s)er Contributed Perl DocumentatCiGoIn::Session::ID::incr(3)
2
3
4

NAME

6       CGI::Session::ID::incr - CGI::Session ID driver
7

SYNOPSIS

9           use CGI::Session;
10           $session = CGI::Session->new("id:Incr", undef, {
11                                       Directory   => '/tmp',
12                                       IDFile      => '/tmp/cgisession.id',
13                                       IDInit      => 1000,
14                                       IDIncr      => 2 });
15

DESCRIPTION

17       CGI::Session::ID::incr is to generate auto incrementing Session IDs.
18       Compare it with CGI::Session::ID::md5, where session ids are truly
19       random 32 character long strings. CGI::Session::ID::incr expects the
20       following arguments passed to CGI::Session->new() as the third
21       argument.
22
23       IDFile
24           Location where auto incremented IDs are stored. This attribute is
25           required.
26
27       IDInit
28           Initial value of the ID if it's the first ID to be generated. For
29           example, if you want the ID numbers to start with 1000 as opposed
30           to 0, that's where you should set your value. Default is 0.
31
32       IDIncr
33           How many digits each number should increment by. For example, if
34           you want the first generated id to start with 1000, and each
35           subsequent id to increment by 10, set IDIncr to 10 and IDInit to
36           1000. Default is 1.
37

LICENSING

39       For support and licensing information see CGI::Session
40
41
42
43perl v5.28.1                      2011-07-11         CGI::Session::ID::incr(3)
Impressum