Package ==

=head1 NAME

CGI::Session::Driver::db_file - CGI::Session driver for BerkeleyDB? using DB_File


$s = new CGI::Session("driver:db_file", $sid); $s = new CGI::Session("driver:db_file", $sid, {FileName=>'/tmp/cgisessions.db'});


B stores session data in BerkelyDB? file using L<DB_File|DB_File> - Perl module. All sessions will be stored in a single file, specified in I driver argument as in the above example. If I isn't given, defaults to F</tmp/cgisess.db>, or its equivalent on a non-UNIX system.

If the directory hierarchy leading to the file does not exist, will be created for you.

This module takes a B option which will be used if DB_File has to create the database file for you. By default the umask is 0660.


For support and licensing information see L<CGI::Session|CGI::Session>

Edit | Attach | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2008-01-22 - TWikiContributor
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2002-2018 Emerging Threats.