Re: Problem headers_out

2003-02-27 Thread Geoffrey Young


Udlei Nattis wrote:
Hi all

Why i have problem?

   $cookie1 = new CGI::Cookie(
   -name = 'sessid', -value = $session-id());
   $r-headers_out-{'Set-Cookie'} = $cookie1;
[snip]

Can't locate 
object method STORE via package APR::Table at 
/export/eShop/lib/eShop/Web/Shop/index.pm line 30.

if i remove $r-headers_out-{'Set-Cookie'} = $cookie1;
you need to

  use APR::Table;

in your script.

HTH

--Geoff



Re: Problem headers_out

2003-02-27 Thread Stas Bekman
Geoffrey Young wrote:


Udlei Nattis wrote:

Hi all

Why i have problem?

   $cookie1 = new CGI::Cookie(
   -name = 'sessid', -value = $session-id());
   $r-headers_out-{'Set-Cookie'} = $cookie1;
[snip]

Can't locate object method STORE via package APR::Table at 
/export/eShop/lib/eShop/Web/Shop/index.pm line 30.

if i remove $r-headers_out-{'Set-Cookie'} = $cookie1;


you need to

  use APR::Table;

in your script.
In the future use:
http://perl.apache.org/docs/2.0/api/ModPerl/MethodLookup.html#lookup_method__
The reason is explained here:
http://perl.apache.org/docs/2.0/user/compat/compat.html#Code_Porting

also please remember to mark your subject with mp2 when asking mp2 questions.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com