View Single Post
Hi all,

Sorry for x-posting here and in OW general.

This simple script worked in 5.1.3 and works in a few other browsers I've just tested, but not in OW5.5:

page1.php
------------
<?php
setcookie('cookie_check','ok');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Cookie check:1</title>
</head>
<body>
If cookies are enabled cookie_check=ok has been set<br />
<a href="page2.php" target="_self">Proceed to page 2</a>
</body>
</html>


page2.php
-----------
<?php
$msg = "oops, can't get cookie_check";
if ($_COOKIE['cookie_check']=='ok') {
$msg = 'cookie_check is ok';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Cookie check:2</title>
</head>
<body>
<?php echo $msg; ?><br />
<a href="page1.php" target="_self">Back to page 1</a>
</body>
</html>


Thanks,
Ian