NAME
CGI::Session::BerkeleyDB - BerkeleyDB CGI::Session driver
SYNOPSIS
use CGI::Session qw/-api3/;
$session = new CGI::Session("driver:BerkeleyDB", undef,
{Directory=>'/tmp'} );
For more examples, consult CGI::Session manual
DESCRIPTION
CGI::Session::BerkeleyDB is a CGI::Session driver to store session data in BerkeleyDB 2.x or better. If you have older version of BerkeleyDB, use DB_File driver instead.
To write your own drivers for CGI::Session refere to CGI::Session manual.
The driver requires both BerkeleyDB and BerkeleyDB Perl interface installed. You can download latest version of BerkeleyDB from http://www.sleepycat.com . Latest release of BerkeleyDB Perl interface can be acquired from your nearest CPAN mirror.
ATTRIBUTES
The only driver attribute required is Directory, which denotes the location where session database and necessary locks to be stored. By default, name of the session database file is "cgisess.db". If you'd rather use a different name, there's FileName attribute you can set:
$session = new CGI::Session("driver:BerkeleyDB", undef,
{Directory=>'/tmp', FileName=>'my_sessions.db'});
COPYRIGHT
Copyright (C) 2002 Sherzod Ruzmetov. All rights reserved.
This library is free software and can be modified and distributed under the same terms as Perl itself.
AUTHOR
Sherzod Ruzmetov <sherzodr@cpan.org>
Feedbacks, suggestions and patches are welcome.
SEE ALSO
CGI::Session - CGI::Session manual
DB_File - BerkeleyDB driver for BerkeleyDB 2.x and older.
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