™.. CGI::Session::Driver::file - Online Linux Manual PageSection : 3
Updated : 2008-07-16
Source : perl v5.10.1
Note : User Contributed Perl Documentation

NAMECGI::Session::Driver::file − Default CGI::Session driver

SYNOPSIS​ $s = new CGI::Session(); ​ $s = new CGI::Session("driver:file", $sid); ​ $s = new CGI::Session("driver:file", $sid, {Directory=>'/tmp'});

DESCRIPTIONWhen CGI::Session object is created without explicitly setting driver, file will be assumed. ​file − driver will store session data in plain files, where each session will be stored in a separate file. Naming conventions of session files are defined by $CGI::Session::Driver::file::FileName global variable. Default value of this variable is 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: ​ use CGI::Session::Driver::file; # This line is mandatory. ​ # Time passes... ​ $CGI::Session::Driver::file::FileName = "%s.dat"; ​ $s = new CGI::Session(); For backwards compatibility with 3.x, you can also use the variable name ​$CGI::Session::File::FileName, which will override the one above.

DRIVER ARGUMENTSIf you wish to specify a session directory, use the Directory option, which denotes location of the directory where session ids are to be kept. If Directory is not set, defaults to whatever File::Spec−>tmpdir() returns. So all the three lines in the SYNOPSIS section of this manual produce the same result on a UNIX machine. If specified Directory does not exist, all necessary directory hierarchy will be created. By default, sessions are created with a umask of 0660. If you wish to change the umask for a session, pass a UMask option with an octal representation of the umask you would like for said session.

NOTESIf your OS doesn't support flock, you should understand the risks of going without locking the session files. Since sessions tend to be used in environments where race conditions may occur due to concurrent access of files by different processes, locking tends to be seen as a good and very necessary thing. If you still want to use this driver but don't want flock, set $CGI::Session::Driver::file::NoFlock to 1 or pass \*(C`NoFlock => 1\*(C'\fR and this driver will operate without locks.

LICENSINGFor support and licensing see CGI::Session
0
Johanes Gumabo
Data Size   :   7,367 byte
man-CGI::Session::Driver::file.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 170,698
Visitor ID   :     :  
Visitor IP   :   18.118.1.63   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|CGI::Session::Driver::file.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|CGI::Session::Driver::file.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|CGI::Session::Driver::file.3pm|41|br══─}─══|'br══─}─══ )         (htmlprn|149|CGI::Session::Driver::file.3pm|41|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|CGI::Session::Driver::file.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (rof_unit_scale_px|41|CGI::Session::Driver::file.3pm|51/52|F|.ie \nF ══─{─══. de IX )         (rof_if|19|CGI::Session::Driver::file.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (htmlprn|149|CGI::Session::Driver::file.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX )         (rof_escape_sequence|91|CGI::Session::Driver::file.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|249|CGI::Session::Driver::file.3pm|57|══─}─══|.══─}─══ )         (htmlprn|149|CGI::Session::Driver::file.3pm|57|.══─}─══ |.══─}─══ )         (rof_escape_sequence|91|CGI::Session::Driver::file.3pm|175|\*(C`NoFlock => 1\*(C'\fR and this |driver but don't want flock, set \f(CW$CGI::Session::Driver::file::NoFlock\fR to 1 or pass \f(CW\*(C`NoFlock => 1\*(C'\fR and this )