Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th February 2004, 05:19 PM
jlr Offline
Registered User
 
Join Date: Nov 2003
Location: Northern New Jersey
Age: 70
Posts: 13
RESOLVED: Perl Sessions 'Valid CGI::Session driver' Error

Running Fedora Core 1, Apache 2, perl v5.8.1

Relevant Modules
----
cpan> i CGI::Session
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Tue, 24 Feb 2004 09:49:56 GMT
Strange distribution name [CGI::Session]
Module id = CGI::Session
DESCRIPTION Session management in CGI applications
CPAN_USERID SHERZODR (Sherzod Ruzmetov <sherzodr@cpan.org>)
CPAN_VERSION 3.95
CPAN_FILE S/SH/SHERZODR/CGI-Session-3.95.tar.gz
DSLI_STATUS RdpO (released,developer,perl,object-oriented)
MANPAGE CGI::Session - persistent session data in CGI applications
INST_FILE /usr/lib/perl5/site_perl/5.8.1/CGI/Session.pm
INST_VERSION 3.95
----------------
cpan> i CGI::Session::File
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Tue, 24 Feb 2004 09:49:56 GMT
Strange distribution name [CGI::Session::File]
Module id = CGI::Session::File
CPAN_USERID SHERZODR (Sherzod Ruzmetov <sherzodr@cpan.org>)
CPAN_VERSION 3.1
CPAN_FILE S/SH/SHERZODR/CGI-Session-3.95.tar.gz
MANPAGE CGI::Session::File - Default CGI::Session driver
INST_FILE /usr/lib/perl5/site_perl/5.8.1/CGI/Session/File.pm
INST_VERSION 3.1.4.1

====================
The code
--------------
#!/usr/bin/perl -w

use strict;
use CGI::Session;

my $session = new CGI::Session ( "driver:File", undef, ( Directory => '/tmp' ));
==================
Resulting error?!?!?!
---------------------
CGI::Session doesn't seem to be a valid CGI::Session driver.
At least one method ('store') is missing at
/usr/lib/perl5/site_perl/5.8.1/CGI/Session.pm line 150
CGI::Session::_validate_driver('CGI::Session=HASH( 0x9875ba0)')
called at /usr/lib/perl5/site_perl/5.8.1/CGI/Session.pm line 55
CGI::Session::new('CGI::Session','driver:File','un def','Directory','/tmp') called at ses.pl line 6
(in cleanup) Can't locate auto/CGI/Session/store.al
in @INC (@INC contains:
...
at /usr/lib/perl5/site_perl/5.8.1/CGI/Session.pm line 429
----------

Any ideas?
Reply With Quote
  #2  
Old 28th February 2004, 01:26 AM
vorte[x] Offline
Registered User
 
Join Date: Mar 2004
Posts: 155
Hi jlr,

[code:1]my $session = new CGI::Session ( "driver:File", undef, ( Directory => '/tmp' ));[/code:1]

... should read ...

[code:1]my $session = new CGI::Session ( "driver:File", undef, {Directory => '/tmp' });[/code:1]

Hope that helps!

- V
Reply With Quote
  #3  
Old 2nd March 2004, 06:51 PM
jlr Offline
Registered User
 
Join Date: Nov 2003
Location: Northern New Jersey
Age: 70
Posts: 13
Yes the braces {} did the trick, thanks!!!

Hope that helps!
Reply With Quote
Reply

Tags
cgisession, driver, error, perl, resolved, sessions, valid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing commands to X session startup (not in gnome sessions, but general) Thetargos Using Fedora 3 11th January 2008 06:09 PM
Perl error? when testing Perl installation magnublm Using Fedora 3 21st September 2005 10:21 PM
perl-CGI-Session rioguia Using Fedora 0 18th August 2005 07:48 PM
Perl Session handler jlr Using Fedora 1 16th February 2004 07:04 PM


Current GMT-time: 21:17 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat