PHP/IE6 and Cookies

razor2025

Diamond Member
May 24, 2002
3,010
0
71
I'm coding a log-in page using PHP and mySQL. It works perfectly fine on any browser EXCEPT IE6... POS MS software. Anyway here's how the script is right now;

<html>
<head>
<title>Checking Log-In...</title>
<link rel="P3Pv1" href="http://www.blablabla.com/p3p.xml"> ** mandatory link needed for IE6 to enable cookies.
</head>
<body>
</body>
</html>
<?php

checks the variables passed via form onto SQL database,

if vairables match;
setcookies (value set for cookies)
auto redirect to new page

?>

The current code produce a HTTP header conflicts. The mandatory IE6 header conflicts with setcookies() on HTTP header. Anybody that's smart enough willing to help out here?
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
I don't know exactly how PHP does it, because I don't write PHP, but I've written plenty of pages that set cookies in perl, and you don't need any specific IE code. Simply set the cookies and the content type and the headers will work in IE6 as well as any other browsers I've ever used. I don't know where you got the idea that IE6 requires some special header to use cookies, which is probably what's causing your problem.
 

razor2025

Diamond Member
May 24, 2002
3,010
0
71
Originally posted by: notfred
I don't know exactly how PHP does it, because I don't write PHP, but I've written plenty of pages that set cookies in perl, and you don't need any specific IE code. Simply set the cookies and the content type and the headers will work in IE6 as well as any other browsers I've ever used. I don't know where you got the idea that IE6 requires some special header to use cookies, which is probably what's causing your problem.

Actually, IE6 has this F*cked cookie policy, where it will refuse to store a cookie unless a p3p policy is on the site in a XML format. This of course, can be circumvented by telling the visitor to get Firefox and dump IE, or turn down their security settings.

This guy has a blog about this whole IE6 BS.
http://www.shaftek.org/blog/archives/000144.html