Hello all.
I am trying to set a cooie and have it called once the page is opened...
the function i've used is:
function setCookie() {
document.cookie = "pageVisit="+now+";expires=" + expireDate.toGMTString(value)
}
which is stored in a seperate .js file.
On the index page, there is the following embedded in the html:
<script language="javascript" type="text/javascript">
setCookie();
</script>
For some reason, no cookie is being set, and wasn't sure why...
any thoughts?
I am trying to set a cooie and have it called once the page is opened...
the function i've used is:
function setCookie() {
document.cookie = "pageVisit="+now+";expires=" + expireDate.toGMTString(value)
}
which is stored in a seperate .js file.
On the index page, there is the following embedded in the html:
<script language="javascript" type="text/javascript">
setCookie();
</script>
For some reason, no cookie is being set, and wasn't sure why...
any thoughts?