NAME
CGI::Persist::File - file-based front end to CGI::Persist
DESCRIPTION
Persistency module using CGI::Persist.
CGI::Persist is capable of preventing 'session-stealing' because it checks REMOTE_ADDR and HTTP_USER_AGENT of the guy (or gal) on the other end of the line.
SYNOPSIS
use strict; #|| die!
my $p = CGI::Persist::File->new(root => "Foo",
prefix => "myscript",
sessionTime => 900,
);
# add a parameter to the data.
$p->param(-name => "Veggie", -value = "TRUE");
# read a parameter from the data.
$id = $p->param('id') || $p->ID;
# store something completely else
$p->data( MyName => "Hartog C. de Mik",
key => "0294202049522095",
);
METHODS
root
Specify the /path/to for your files. Defaults to /tmp. If you use "../" in your root() CGI::Persist::File causes a die.
prefix
Specify the prefix to use for your files. If you have something like
$cgi->root("/www/sessions"); $cgi->prefix("MyScript");
filenames will look like:
/www/sessions/MyScript-Fw8WQJ
When ->prefix() is empty filenames would look like:
/www/sessions/Fw8WQJ
SEE ALSO
CGI(3), CGI::Persist
AUTHOR
Hartog C. de Mik, hartog@2organize.com