neilwatson has asked for the wisdom of the Perl Monks concerning the following question:
My real problem is in reading cookies:my $r = Apache->request; Apache::Cookie->new( $r, name => 'license_session', value => $secret, path => '/', expires => '+8h', )->bake;
my $cookie = Apache::Cookie->fetch; my $name = $cookie->name; my $value = $cookie->value; print "<h3>name = $name</h3>\n"; print "<h3>value = $value</h3>\n";
An error is returned: Can't call method "name" on an undefined value. This error points to the line where $name is defined. The documentation for apache::cookie is pretty small. Having read it, I thought this would be simple. What have I missed?
Neil Watson
watson-wilson.ca
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with Apache::Cookie
by arthas (Hermit) on Nov 02, 2003 at 21:18 UTC | |
by neilwatson (Priest) on Nov 03, 2003 at 15:03 UTC | |
|
Re: Help with Apache::Cookie
by neilwatson (Priest) on Nov 03, 2003 at 18:00 UTC |