page1.cfm consists of setting cfcookie named inet ...
# cfml-general
g
page1.cfm consists of setting cfcookie named inet with a value of "fred" dumping #cookie# and there displays the cookie properly. page2.cfm consists of dumping #cookie# and seeing inet but the value is [empty string]. Aint that weird?
d
The page1 output is merely an optimistic representation of a cookie that may come to exist at some point in the future, after the page has finished processing, the response has been sent, the client has received the instruction to create said cookie, and has followed it as expected. Only the client can tell you what cookies actually exist in the end. You could try adding this at the bottom of the page to get a more accurate picture:
Copy code
<script>
	alert(document.cookie);
</script>