1CGI::Session::Driver::sUqsleirteC(o3n)tributed Perl DocuCmGeIn:t:aSteisosnion::Driver::sqlite(3)
2
3
4

NAME

6       CGI::Session::Driver::sqlite - CGI::Session driver for SQLite
7

SYNOPSIS

9           $s = new CGI::Session("driver:sqlite", $sid, {DataSource=>'/my/folder/sessions.sqlt'});
10           $s = new CGI::Session("driver:sqlite", $sid, {Handle=>$dbh});
11
12       or
13
14           $s = new CGI::Session('driver:sqlite', undef,
15           {
16               TableName=>'session',
17               IdColName=>'my_id',
18               DataColName=>'my_data',
19               Handle=>$dbh,
20           });
21

DESCRIPTION

23       sqlite driver stores session data in SQLite files using DBD::SQLite DBI
24       driver. More details see CGI::Session::Driver::DBI, its parent class.
25

DRIVER ARGUMENTS

27       Supported driver arguments are DataSource and Handle. At most only one
28       of these arguments can be set while creating session object.
29
30       DataSource should be in the form of
31       "dbi:SQLite:dbname=/path/to/db.sqlt". If "dbi:SQLite:" is missing it
32       will be prepended for you. If Handle is present it should be database
33       handle ($dbh) returned by DBI::connect().
34
35       As of version 1.7 of this driver, the third argument is NOT optional.
36       Using a default database in the temporary directory is a security risk
37       since anyone on the machine can create and/or read your session data.
38       If you understand these risks and still want the old behavior, you can
39       set the "DataSource" option to '/tmp/sessions.sqlt'.
40

BUGS AND LIMITATIONS

42       None known.
43

LICENSING

45       For support and licensing see CGI::Session
46
47
48
49perl v5.12.3                      2008-07-16   CGI::Session::Driver::sqlite(3)
Impressum