V
Vijoy Varghese
Hi Friends,
I created a cgi program which make use of the cookies to check user
authentication. And for creating cookies i make use of cgi::cookie. I
am having a weird problem...
use CGI::Cookie;
my $cookie1 = cookie(-name => 'foo',
-value => 'bar',
-expires => '+3M'
);
print header(-cookie=>[$cookie1]);
My cookie program works fine when i run the program on the local
webserver and view it on my internet explorer/mozilla browsers.
But when i tried the same program from a remote webserver the scipt is
not working properly with internet explorer. Everything is fine with
mozilla.
When i tried to debug the problem, i found that cookies are not
falling to IE's cookie folder when i use the remote script. But when i
tried the script from a frineds house and used IE, everything is
working fine. And if you doubt that i havenot properly set my cookies
setting of my IE, no! everythingis properly configured. I can see
cookies from other websites in my cookie folder, but my program is not
able to put any cookies. Why is this so?
It's not the problem of my program, because its working properly in
other browsers(other than my home one).
It cant be the problem of my browser, because the script works
properly using a local webserver, and on internet cookies from all
other websites works fine.
Then who is the culprit?
please help
Regards
Vijoy Varghese.
I created a cgi program which make use of the cookies to check user
authentication. And for creating cookies i make use of cgi::cookie. I
am having a weird problem...
use CGI::Cookie;
my $cookie1 = cookie(-name => 'foo',
-value => 'bar',
-expires => '+3M'
);
print header(-cookie=>[$cookie1]);
My cookie program works fine when i run the program on the local
webserver and view it on my internet explorer/mozilla browsers.
But when i tried the same program from a remote webserver the scipt is
not working properly with internet explorer. Everything is fine with
mozilla.
When i tried to debug the problem, i found that cookies are not
falling to IE's cookie folder when i use the remote script. But when i
tried the script from a frineds house and used IE, everything is
working fine. And if you doubt that i havenot properly set my cookies
setting of my IE, no! everythingis properly configured. I can see
cookies from other websites in my cookie folder, but my program is not
able to put any cookies. Why is this so?
It's not the problem of my program, because its working properly in
other browsers(other than my home one).
It cant be the problem of my browser, because the script works
properly using a local webserver, and on internet cookies from all
other websites works fine.
Then who is the culprit?
please help
Regards
Vijoy Varghese.