Re: short JavaScript cookies?

by "Angie Michaels" <angiemichaels(at)blueyonder.co.uk>

 Date:  Wed, 28 Nov 2001 15:05:19 -0000
 To:  "Shull,
Conrad" <cshull(at)shscares.org>,
<hwg-languages(at)hwg.org>
 References:  ntmail1
  todo: View Thread, Original
var useraccount = "Mike McGrath, 000456";

var expiry = new Date();expiry.setTime( expiry.getTime() +
(7*24*60*60*1000) );

document.cookie = "cookiedata=" + escape(useraccount) + ";"  + "expires=" +
expiry.toGMTString() + ";" ;

Is this less?

Angie (MVP)

----- Original Message -----
From: Shull, Conrad <cshull(at)shscares.org>
To: <hwg-languages(at)hwg.org>
Sent: Wednesday, November 28, 2001 1:54 PM
Subject: short JavaScript cookies?


> Seasons Greetings,
>
> I'm well versed in VBScript, but a cutter-and-paster with JavaScript.
What
> is the rock bottom, shortest, quickest barebones JavaScript for setting a
> simple cookie?  In VBScript, it takes one line and about 30 keystrokes.
The
> JavaScript examples I see look like enough code to get the luner module
> safely on the Moon and back.
>
> Thanks, Conrad Shull

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA