The following code works fine in IE8 and Firefox 3.5. Any idea why it does not work in Chrome ? Tried it both in localhost and on my web server -- no success.
In the header:
[code = php]
<?php
if((isset($_COOKIE["unique_id"]))&&isset($_COOKIE["users_resolution"])){
$screen_res = $_COOKIE["users_resolution"];
$unique_id = $_COOKIE["unique_id"];
}
else //means cookie is not found set it using Javascript
{
?>
[/code]
[code = html]
[/code]
[code = php]
<?php } ?>
// And in the ,body>
<?php
echo "Screen resolution: ".$screen_res."
";
echo "Unique ID: ".$unique_id."
";
?>
[/code]
Any help would be appreciated.