CGI::Session::DB_File - DB_File driver for CGI::Session
use CGI::Session; $session = new CGI::Session("driver:DB_File", undef, {Directory=>'/tmp'});
For more details, refer to CGI::Session manual
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.
Copyright (C) 2001-2002 Sherzod Ruzmetov. All rights reserved.
This library is free software and can be modified and distributed under the same terms as Perl itself.
Bug reports should be directed to sherzodr@cpan.org, or posted to Cgi-session@ultracgis.com mailing list.
CGI::Session::DB_File is written and maintained by Sherzod Ruzmetov <sherzodr@cpan.org>
CGI::Session - CGI::Session manual
CGI::Session::Tutorial - extended CGI::Session manual
CGI::Session::CookBook - practical solutions for real life problems
RFC 2965 - "HTTP State Management Mechanism" found at ftp://ftp.isi.edu/in-notes/rfc2965.txt
CGI - standard CGI library
Apache::Session - another fine alternative to CGI::Session
To install CGI::Session, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Session
CPAN shell
perl -MCPAN -e shell install CGI::Session
For more information on module installation, please visit the detailed CPAN module installation guide.