Line: 7 to 7 | ||||||||
---|---|---|---|---|---|---|---|---|
=head1 SYNOPSIS | ||||||||
Changed: | ||||||||
< < | $s = new CGI::Session(); $s = new CGI::Session("driver:file", $sid); $s = new CGI::Session("driver:file", $sid, {Directory=>'/tmp'}); | |||||||
> > | $s = CGI::Session->new(); $s = CGI::Session->new("driver:file", $sid); $s = CGI::Session->new("driver:file", $sid, {Directory=>'/tmp'}); | |||||||
=head1 DESCRIPTION | ||||||||
Line: 22 to 22 | ||||||||
Default value of this variable is I<cgisess_%s>, where %s will be replaced with respective session ID. Should you wish to set your own FileName template, do so before requesting for session object: | ||||||||
Added: | ||||||||
> > | use CGI::Session::Driver::file; # This line is mandatory. # Time passes... | |||||||
$CGI::Session::Driver::file::FileName = "%s.dat"; | ||||||||
Changed: | ||||||||
< < | $s = new CGI::Session(); | |||||||
> > | $s = CGI::Session->new(); | |||||||
For backwards compatibility with 3.x, you can also use the variable name C<$CGI::Session::File::FileName>, which will override the one above. |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | Package ===head1 NAME CGI::Session::Driver::file - Default CGI::Session driver =head1 SYNOPSIS $s = new CGI::Session(); $s = new CGI::Session("driver:file", $sid); $s = new CGI::Session("driver:file", $sid, {Directory=>'/tmp'}); =head1 DESCRIPTION When CGI::Session object is created without explicitly setting I |