I have a website which is accessible from 2 different addresses, one is its "real" address and the other is a redirect-inside-frame job.
I have a login system which uses cookies, and it works for the first (real) domain but not for the 2nd. I've tried setting the cookie twice with different domain paths but to no avail. Any ideas?
setcookie("site_username", $SITE_USERNAME, time()+3600, "/", ".domain1.net", "");
setcookie("site_password", $SITE_PASSWORD, time()+3600, "/", ".domain1.net", "");
setcookie("site_username", $SITE_USERNAME, time()+3600, "/", ".domain2.net", "");
setcookie("site_password", $SITE_PASSWORD, time()+3600, "/", ".domain2.net", "");
What am I doing wrong?
ps. It works fine with IE5.5 on Win98 and Opera6 on WinXP, but not with IE6 on XP.