Ray.Zachary has asked for the wisdom of the Perl Monks concerning the following question:
This looks fine when I run this script with `perl /var/www/htdocs/index.fcgi` under command line, it created a session file under "/tmp".#!/usr/bin/perl #/var/www/htdocs/index.fcgi use CGI::Fast qw(:standard); use CGI; use CGI::Session; while ($q = new CGI::Fast) { my $session = CGI::Session->new ("driver:file", $q, {Directory => +'/tmp'}) or die "Session Initializing Failed.\n$!"; $session->expire('60'); $session->param('s1', 'XXX-S1-XXX'); $session->param('s2', 'XXX-S2-XXX'); $session->param('s3', 'XXX-S3-XXX'); print $session->header ( -type => 'text/html', -charset => 'utf-8', -title => 'test page'); my $var = $q->param('var'); print "var = $var."; print end_html; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to create sessions via FastCGI?
by almut (Canon) on Jul 29, 2010 at 12:52 UTC | |
|
Re: How to create sessions via FastCGI?
by bluescreen (Friar) on Jul 29, 2010 at 13:59 UTC | |
by Ray.Zachary (Acolyte) on Jul 31, 2010 at 05:37 UTC | |
by afoken (Chancellor) on Jul 31, 2010 at 06:58 UTC | |
|
Re: How to create sessions via FastCGI?
by Anonymous Monk on Jul 29, 2010 at 22:53 UTC | |
|
Re: SOLVED: How to create sessions via FastCGI?
by vtwin4christ (Initiate) on Apr 21, 2015 at 18:07 UTC |