shaolindoman has asked for the wisdom of the Perl Monks concerning the following question:
Hello all. Well, I'm working on login/session tracking and decided to use CGI::Session. I'm working in a windows enviroment and seem to be generating some problems getting the initial session started (hence I'm very inexperienced). Anyways, here is my code along with the errors that are generated when I try to run it.
I get this error:use strict; use CGI qw(:standard); use CGI::Session; my $cgi = new CGI(); my $session = new CGI::Session(undef, undef, {Directory=>'\tmp'});
I've also trying running it asCan't locate DB_File.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/si +te/lib .) at C:/Perl/site/lib/CGI/Session/DB_File.pm line 12. BEGIN failed--compilation aborted at C:/Perl/site/lib/CGI/Session/DB_F +ile.pm lin e 12.
and had the same errors. I have File::Spec installed and I have created the directory /tmp. What am I missing here or not understanding? Thanks.my $session = new CGI::Session("driver:FILE", undef, Directory=>File:: +Spec->tmpdir);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CGI Session
by Abigail-II (Bishop) on Jun 23, 2004 at 16:48 UTC | |
by shaolindoman (Acolyte) on Jun 23, 2004 at 17:24 UTC | |
by shaolindoman (Acolyte) on Jun 23, 2004 at 17:34 UTC | |
by iburrell (Chaplain) on Jun 23, 2004 at 18:47 UTC | |
by shaolindoman (Acolyte) on Jun 23, 2004 at 18:26 UTC | |
by eric256 (Parson) on Jun 23, 2004 at 20:05 UTC | |
by Anonymous Monk on Jun 23, 2004 at 19:56 UTC | |
by Wally Hartshorn (Hermit) on Jun 23, 2004 at 20:58 UTC | |
by shaolindoman (Acolyte) on Jun 28, 2004 at 15:29 UTC |
Back to
Seekers of Perl Wisdom