Okay so I added a javascript function to make my like easier by opening a new window with the following code.
<Script Language="JavaScript">
function SomeCommand() {
var load = window.open('URL','','scrollbars=yes,menubar=no,height=400,width=300,resizable=yes,toolbar=no,location=no,status=no');
}
</Script>
<a href=javascript:SomeCommand()></a>
Now the java code seems to work and all but when I open the file it doesn't seem to find the cookie in the window mode. But when I open the same file in the browser it finds the cookie and I can proceed. Without the cookie I cannot because it's a login cookie.
So is there any idea why it wont read the cookie in window mode but it will in browser?
Here is what the cookie is doing. Just in case you are curious. And I know sessions are better but that is not what I am asking for. Thanks.
<?php
if(!isset($_COOKIE['USER_ID']))
die('Not logged in, please <a href=index.php>go back</a>');
?>