Apache::Cookie question

[prev] [thread] [next] [Date index for 2004/12/28]

From: Sean Davis
Subject: Apache::Cookie question
Date: 18:41 on 28 Dec 2004
I am having trouble with Apache::Cookie.  I keep getting errors like:

Can't locate object "new" via package "Apache::Cookie"....

The code looks like:

sub session {
     my $self = shift;

     return $self->{_session} if ($self->{_session});
     my %cookie = Apache::Cookie->new($self->query)->parse;
     my %session;
     if ($cookie{_session_id}) {
	# we have a valid cookie
	tie %session, 'Apache::Session::PostgreSQL', $session_id;
     } else {
	# new session needed
	tie %session, 'Apache::Session::PostgreSQL';
     }
     $self->{_session} = \%session;
     return \%session;
}

Looking at the source:

http://search.cpan.org/src/STAS/libapreq-1.33/Cookie/Cookie.pm

I see very little code.  What is the magic?  What am I missing?

Using mod_perl 1.33 on macos.

Thanks,
Sean


        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Apache::Cookie question
Sean Davis 18:41 on 28 Dec 2004

Re: Apache::Cookie question
Malcolm J Harwood 18:57 on 28 Dec 2004

Re: Apache::Cookie question
Sean Davis 19:02 on 28 Dec 2004

Re: Apache::Cookie question
Stas Bekman 20:44 on 28 Dec 2004

Re: Apache::Cookie question
Sean Davis 11:41 on 29 Dec 2004

Re: Apache::Cookie question
Stas Bekman 16:31 on 29 Dec 2004

Re: Apache::Cookie question
Sean Davis 19:40 on 28 Dec 2004

Re: Apache::Cookie question
Perrin Harkins 01:19 on 29 Dec 2004

Generated at 12:16 on 16 Jan 2005 by mariachi v0.52