Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Cookie's In Internet Explorer
October 22, 2004, 8:32 am
rate this thread
I am creating cookies in php, which works fine in Mozilla in the same
session[window], for example I can create them and then go to another
page and then come back to the page and see the results of the cookie
take effect. But in Internet Explorer I create the cookies, but have
to close the browser window/session and reopen the browser for the
cookies to be read/take effect.
Here is my code.
if ((isset($_POST['cookieCollege'])) &&
setcookie("default_college", "$cookieCollege", time()+60*60*24*360,
setcookie("default_folder", "$cookieFolder", time()+60*60*24*360,
"/", ".mycollegepost.com"); }
Then I have:
if(($_COOKIE['default_college']) && ($_COOKIE['default_folder']))
$collegeName = $_COOKIE[default_college];
$folder = $_COOKIE[default_folder];
echo "<meta HTTP-EQUIV=\"refresh\" CONTENT=\"0;
Thanks for any help!
Re: Cookie's In Internet Explorer
gone wrong. I've noticed that the later versions of IE block cookies
from third-party sites by default (which is a good thing from a privacy
point of view). If your page is on a domain that's not the same as in
the address bar, then that could be the problem.
Look for a red exclamation mark on the bottom right of IE to see if
that's the case. If it's there then double-click it to open up the