[Javascript] Cookie dilemma - still

Phillip Morgan pjmorgan at optushome.com.au
Sun Jun 2 07:36:28 CDT 2002


I can't even get the simplest for of a cookie to work. 
 
I've got this from a javascript book I've just purchased, but even this
doesn't write the cookie.
 
function setCookie(name, value, expires) {
  document.cookie = name + "=" + escape(value) + expires;
 }
 
setCookie ("Test", "Test", "Tue, 04-Jun-02 23:45:00 GMT")
 
The index.dat in c:\windows\cookies appears to get updated, but no
cookie is written.
 
Help!!
 
phill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020602/783a0d5f/attachment.htm>


More information about the Javascript mailing list