Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -wT use CGI; $q = new CGI; use CGI::Cookie; $cookie = new CGI::Cookie(-name => 'foo', -value => 'bar', -domain => '.corn.com'); print $q->header( -type => 'text/html', -cookie=> $cookie ); print $q->start_html; print $q->p, "hello and $ENV{HTTP_COOKIE}"; #just checking print $q->end_html;
basically i tryed the above and this way:
$cookie2 = $q->cookie( -name => 'aa', -value=> 'bb', -domain => 'corn.com'.
Now the cookie only sets if I DISINCLUDE the "domain" part.
I need to set a cookie at one domain for a different domain.
I also only need it sent back to the one domain thats listed in "-domain=>"
EX. SET the cookie here: http://perlmonks.org for domain to use here: http://theotherperl.org
Is this possible?
thanks,
Adam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cookies, cgi::cookie, set by domain
by Eureka_sg (Monk) on May 07, 2001 at 12:10 UTC | |
|
Re: cookies, cgi::cookie, set by domain
by Masem (Monsignor) on May 07, 2001 at 15:15 UTC | |
|
Re: cookies, cgi::cookie, set by domain
by Rhandom (Curate) on May 07, 2001 at 17:49 UTC | |
|
Re: cookies, cgi::cookie, set by domain
by centaurii (Initiate) on May 11, 2001 at 19:36 UTC |