CGI::Session::File - Default CGI::Session driver |
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 the CGI::Session manpage manual
CGI::Session::File is a default CGI::Session driver. Stores the session data in plain files. For the list of available methods, consult the CGI::Session manpage 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::File - Default CGI::Session driver |