--- Sara <[EMAIL PROTECTED]> wrote:

> 1. Are we setting up the proper headers?
> 
> use CGI;
> my $q = new CGI;
> 
> print $q->header(-cookie=>$cookie);
 
I think so.  I did it this way:

my $cookie = new CGI::Cookie(-name=>'name',
                             -value=>"$name",
                             -expires=>'+6M');

print "Set-Cookie: $cookie\n";

> 2. I am unable to see the
> 
> -domain => 'foo.com';
> 

I left that out.  The docs say "If no domain is
specified, then the browser will only return the
cookie to servers on the host the cookie originated
from."  Which is what I want I think?

> 3. On which machine, you are testing? Your Windows
> (localhost) or a real web 
> server?. I have always experienced problems locating
> cookies for my 
> localhost (Windows XP, Apache). But when I ran the
> scripts on my *nix Web 
> Server, those worked fine.

yes, I'm using a linux red hat server off on the
internet somewhere.

> 
> 4. When dealing with cookies and calling the scripts
> within your browser, 
> don't hit your refresh button while testing the
> script, always call the 
> script in a new window for fresh headers.
 
Okay.

> I have never experienced HIDDEN cookies, new
> phenomenon for me atleast.

I'll go through and double check.  It could have been
some weird coincidence, but I don't think so.
> 
> HTH,
> Sara.

Thanks for your help,
Denzil


                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to