shahrahulb
asked on
delete cookie
how do i delete the cookie, if some one hits logout button on my web page
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i tried this
print "<html> <script> document.cookie = \"TEST=value;expires=-1;pa th=/\"</sc ript> ";
this time it works for IE and not for Mozilla
print "<html> <script> document.cookie = \"TEST=value;expires=-1;pa
this time it works for IE and not for Mozilla
ASKER
if i set the cookie using
my $cookie1 = new CGI::Cookie(-name=>'TEST', -value=>$u sername);
print header(-cookie=>$cookie1);
this works for both mozilla and IE
but deletion is not working
my $cookie1 = new CGI::Cookie(-name=>'TEST',
print header(-cookie=>$cookie1);
this works for both mozilla and IE
but deletion is not working
ASKER
i set the expire value to "Thu, 01-Jan-1970 00:00:01 GMT"
it worked for both
can anyone explain the reson behind this?
it worked for both
can anyone explain the reson behind this?
ASKER
my $cookie1 = new CGI::Cookie(-name=>'TEST',
print header(-cookie=>$cookie1);
this is working in mozilla but not in IE