CGI::Session::File - Default CGI::Session driver
This manual refers to $Revision: 3.1.4.1 $
use CGI::Session; $session = new CGI::Session("driver:File", undef, {Directory=>'/tmp'});
For more examples, consult CGI::Session manual
CGI::Session::File is a default CGI::Session driver. Stores the session data in plain files. For the list of available methods, consult CGI::Session manual.
Each session is stored in a seperate file. File name is by default formatted as "cgisess_%s", where '%s' is replaced with the effective session id. To change file name formatting, update $CGI::Session::File::NAME variable. Examples:
$CGI::Session::File::FileName = 'cgisess_%s.dat'; # with .dat extention $CGI::Session::File::FileName = '%s.session'; $CGI::Session::File::FileName = '%CGI-Session-%s.dat'; # old style
The only driver option required is 'Directory', which denotes the location session files are stored in.
Example:
$session = new CGI::Session("driver:File", undef, {Directory=>'some/directory'});
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::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.