NAME
CGI::Persist::Cache - CGI::Persist using Cache::File
DESCRIPTION
CGI::Persist::Cache is the Cache::File-based front end to CGI::Persist
SYNOPSIS
use strict; #|| die!
my $p = CGI::Persist::Cache->new( root => "Foo",
umask => 002,
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",
);
# check if the button was pushed.
if ( $cgi->gotSubmit("the_button") ) {
# ...
}
# check is the param is NOT this requested now
if ( $cgi->param("the_param") && !defined $cgi->currentParam("the_param") ) {
# ...
}
ACCESSOR METHODS
root
Specify the /path/to for you tmp-files. Defaults to /tmp. If you use "../" in your root() CGI::Persist::File causes a die.
umask
Specify the umask for Cache::File. 077 by default.
SEE ALSO
CGI(3), CGI::Persist
AUTHOR
Hartog C. de Mik, hartog@2organize.com