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 = new CGI::Session("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 ran‐
19       dom 32 character long strings. CGI::Session::ID::incr expects the fol‐
20       lowing arguments passed to CGI::Session->new() as the third argument.
21
22       IDFile
23           Location where auto incremented IDs are stored. This attribute is
24           required.
25
26       IDInit
27           Initial value of the ID if it's the first ID to be generated. For
28           example, if you want the ID numbers to start with 1000 as opposed
29           to 0, that's where you should set your value. Default is 0.
30
31       IDIncr
32           How many digits each number should increment by. For example, if
33           you want the first generated id to start with 1000, and each subse‐
34           quent id to increment by 10, set IDIncr to 10 and IDInit to 1000.
35           Default is 1.
36

LICENSING

38       For support and licensing information see CGI::Session
39
40
41
42perl v5.8.8                       2006-11-24         CGI::Session::ID::incr(3)
Impressum