On Mon, 22 May 2000, Jim Serio wrote:

> I'm still having trouble writing cookies while
> using Apache::Sandwich (thanks Vivek for the
> explination). Searching through the list archives,
> I found an example from David Pisoni to add the
> cookie to an image using the PerlFixupHandler.
> It doesn't seem to be workign for me though..
> I also tried using CGI (in the handler) to
> write out the cooke with the same results. Here's
> the snippet from httpd.conf:
> 
> <Location /images/header_top_left.gif>
>       PerlFixupHandler Cookieme
> </Location>
> 
> And here's teh entire Cookieme module:

i dropped your code in mod_perl-1.xx/t/docs/startup.pl
and config in t/conf/httpd.conf (in the /perl/perl-status Location), it
works just fine.  your cookie format looks wrong though, maybe netscape
can't parse it?

% telnet localhost 8529
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
GET /perl/perl-status http/1.0

HTTP/1.1 200 OK
Date: Tue, 23 May 2000 18:07:06 GMT
Server: Apache/1.3.13-dev (Unix) mod_perl/1.24_01-dev Perl/v5.6.0
Set-Cookie: cobrand=cobrand= ;domain=.hotwired.com;path=/
Connection: close
Content-Type: text/html

...

Reply via email to