CGI::Session::DB_File(3pm)

CGI::Session::DB_File3pm

Db_file driver for cgi::session

Usage

    use CGI::Session;
    $session = new CGI::Session("driver:DB_File", undef, {Directory=>'/tmp'});

For more details, refer to CGI::Session manual

Overview

CGI::Session::DB_File is a CGI::Session driver to store session data in BerkeleyDB. Filename to store the session data is by default 'cgisess.db'. If you want different name, you can either specify it with the "FileName" option as below:

    $s = new CGI::Session::DB_File(undef, {Directory=>'/tmp', FileName=>'sessions.db'});

or by setting the value of the $CGI::Session::DB_File::NAME variable before creating the session object:

    $CGI::Session::DB_File::NAME = 'sessions.db';
    $s = new CGI::Session("driver:DB_File", undef, {Directory=>'/tmp'});

The only driver option required, as in the above examples, is "Directory", which tells the driver where the session file and lock files should be created.

"FileName" option is also available, but not required.

Author

CGI::Session::DB_File is written and maintained by Sherzod Ruzmetov <[email protected]>

From libcgi-session-perl 3.95-2 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.