Hi Guys,

I have just today started out with Javascript and can't seem to get this
snippet of code below to write the contents of "dat"
(testdatatestdatatestdatatestdatatestdatatestdata) to the cookie. Once I
have that working I can start trying it with some "real" data.

The following code is in the <body> of my test page.

<script language="javascript">
var exp = new Date()
var oneYearFromNow = exp.getTime() + (365 * 24 * 60 * 60 * 1000)
var dat = "testdatatestdatatestdatatestdatatestdatatestdata"
document.cookie = "exp; expires=" + exp.toGMTString();

When I run this locally, my cookie gathers the following info :

exp~~local~~/C:\WINDOWS\Temporary Internet

Any ideas?