March 15th, 2002, 11:26 PM
Join Date: Sep 2001
Time spent in forums: < 1 sec
Reputation Power: 0
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.
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 :