NAME
CGI::Session::File - For stroing session data in plain files.
SYNOPSIS
use CGI::Session::File;
$session = new CGI::Session::File(undef, {Directory => '/tmp/sessions'});
# for more examples see CGI::Session manual
DESCRIPTION
CGI::Session::File
is the driver for the CGI::Session to store and retrieve the session data in and from plain text files.
To be able to write your own drivers for CGI::Session, please consult developer section of CGI::Session manual.
Constructor requires two arguments, as all other CGI::Session drivers do. The first argument has to be session id to be initialized (or undef to tell the CGI::Session to create a new session id). The second argument has to be a reference to a hash with the two following required key/value pairs:
Directory
-
path in the file system where all the session data will be stored
In versions prior to 2.6 one also had to indicate the LockDirectory
, but it is no longer required.
CGI::Session::File
serializes session data using Data::Dumper before storing it in the session file.
AUTHOR
Sherzod B. Ruzmetov <sherzodr@cpan.org>
COPYRIGHT
This library is free software and can be redistributed under the same
conditions as Perl itself.
SEE ALSO
CGI::Session, CGI::Session::File, CGI::Session::DB_File, CGI::Session::MySQL, Apache::Session