Hello,
I am having problems getting cookie values from a javascript file located on another domain. It works fine in Opera, but not in IE.
I set a cookie at site2.com and try reading it from the javascript file located on the same domain. I am calling the javascript from another domain. Does IE prevent cookie values from being used on this other domain. In Opera the JavaScript file acts much like a frame, keeping all the session information for it's domain.
here is a simple version of the code I'm using:
index.html (located on www.site1.com):
<script language="JavaScript" src="http://www.site2.com/myscript.php></script>
myscript.php (located on www.site2.com):
<?
$_SESSION["loggedin"]=true;
if ($_SESSION["loggedin"]) {
echo "document.write('You are logged in!');";
else {
echo "document.write('You are not logged in!');";
}
?>