in reply to CGI::Session autoload failure

I don't see it anywhere in the code that you've posted but somewhere you seem to call $Session->expired. It does not appears in CGI/Session.pm or CGI/Session/File.pm. You can try this quite simply with the following code:

#!/usr/bin/perl -l use CGI::Session; use CGI; # you seem to use a CGI object for your id...don't know why $a = CGI::Session->new(undef,new CGI,{Directory=>'/tmp'}); sub test(&) { eval { $_[0]->() }; chomp $@; print ++$b,$",$@ ? "Died: $@":"Success"; } test { $a->expire }; # 1 Success test { $a->expires }; # 2 Success test { $a->expired }; # 3 Died test { $a->jesii }; # 4 Died __END__ 1 Success 2 Success 3 Died: Can't locate auto/CGI/Session/File/expired.al in @INC ... 4 Died: Can't locate auto/CGI/Session/File/jesii.al in @INC ...

Just search your code for $Session->expired. I hope this helps.

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Replies are listed 'Best First'.
Re: Re: CGI::Session autoload failure
by JESii (Novice) on Jan 11, 2004 at 00:18 UTC

    Thanks... Yes, I had used the wrong method name.

    Regarding your question about using a CGI object in the call to CGI::Session->new, that's because this is part of a CGI::Application program that I'm writing, and I need that object for other purposes.

    ...jon