1. Are we setting up the proper headers?
use CGI;
my $q = new CGI;
print $q->header(-cookie=>$cookie);
2. I am unable to see the
-domain => 'foo.com';
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.
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.
I have never experienced HIDDEN cookies, new phenomenon for me atleast.
HTH,
Sara.
----- Original Message -----
From: "Denzil Kruse" <[EMAIL PROTECTED]>
To: <beginners-cgi@perl.org>
Sent: Friday, September 16, 2005 9:08 AM
Subject: cookies as hidden files
Hi all,
I read through the docs for CGI::Cookie and learned
how to set a cookie. I do it with line:
my $cookie = new CGI::Cookie(-name=>'name',
-value=>"$name",
-expires=>'+6M');
But, I've found out that when IE creates the cookie,
it creates it as a hidden file, so when I come around
and fetch it, it can't find the cookie and hangs.
But, I saw some cookies that weren't hidden. The list
just got bigger once I told windows to how hidden
files.
So, my question is, how can I create the cookie in
such a way that it isn't hidden? I couldn't find it
in the docs I looked through.
thanks,
Denzil
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
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>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>