.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "CGI::Session::Driver::sqlite 3" .TH CGI::Session::Driver::sqlite 3 2023-07-25 "perl v5.38.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME CGI::Session::Driver::sqlite \- CGI::Session driver for SQLite .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 2 \& $s = CGI::Session\->new("driver:sqlite", $sid, {DataSource=>\*(Aq/my/folder/sessions.sqlt\*(Aq}); \& $s = CGI::Session\->new("driver:sqlite", $sid, {Handle=>$dbh}); .Ve .PP or .PP .Vb 7 \& $s = CGI::Session\->new(\*(Aqdriver:sqlite\*(Aq, undef, \& { \& TableName=>\*(Aqsession\*(Aq, \& IdColName=>\*(Aqmy_id\*(Aq, \& DataColName=>\*(Aqmy_data\*(Aq, \& Handle=>$dbh, \& }); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBsqlite\fR driver stores session data in SQLite files using DBD::SQLite DBI driver. More details see CGI::Session::Driver::DBI, its parent class. .SH "DRIVER ARGUMENTS" .IX Header "DRIVER ARGUMENTS" Supported driver arguments are \fIDataSource\fR and \fIHandle\fR. \fBAt most\fR only one of these arguments can be set while creating session object. .PP \&\fIDataSource\fR should be in the form of \f(CW\*(C`dbi:SQLite:dbname=/path/to/db.sqlt\*(C'\fR. If \f(CW\*(C`dbi:SQLite:\*(C'\fR is missing it will be prepended for you. If \fIHandle\fR is present it should be database handle (\f(CW$dbh\fR) returned by \fBDBI::connect()\fR. .PP As of version 1.7 of this driver, the third argument is \fBNOT\fR optional. Using a default database in the temporary directory is a security risk since anyone on the machine can create and/or read your session data. If you understand these risks and still want the old behavior, you can set the \f(CW\*(C`DataSource\*(C'\fR option to \fI'/tmp/sessions.sqlt'\fR. .SH "BUGS AND LIMITATIONS" .IX Header "BUGS AND LIMITATIONS" None known. .SH LICENSING .IX Header "LICENSING" For support and licensing see CGI::Session