Couldn't get cookies back from IE. tried to send them in two ways:
1)
print "Set-cookie: CFISESSID=$sid; path=/pepsite\n";
print "Content-type: text/html\n\n";
2)
$cgi=new CGI;
$session = new CGI::Session(undef, $sid, {Directory => '/tmp'});
$cookie = $cgi->cookie(-name => 'CGISESSID', -value => $sid, -path=>'/pepsite/cgi-bin');
print $cgi->header(-type=>'text/html',-cookie => $cookie);
getting cookie with:
$sid = $cgi->cookie('CGISESSID') || undef;
both variants works correctly for opera and netscape, but not for IE, what is the problem?
1)
print "Set-cookie: CFISESSID=$sid; path=/pepsite\n";
print "Content-type: text/html\n\n";
2)
$cgi=new CGI;
$session = new CGI::Session(undef, $sid, {Directory => '/tmp'});
$cookie = $cgi->cookie(-name => 'CGISESSID', -value => $sid, -path=>'/pepsite/cgi-bin');
print $cgi->header(-type=>'text/html',-cookie => $cookie);
getting cookie with:
$sid = $cgi->cookie('CGISESSID') || undef;
both variants works correctly for opera and netscape, but not for IE, what is the problem?