Use this code
<Script Language="VBScript"
<!--
Sub SubmitButton_OnClick()
Document.Cookie="Username=sName;Expires=Fri 27-Apr-01 13:00:00 GMT"
End Sub
-->
</Script>
Username is the key where the cookie is stored
sName is the variable (value) your client entered as the username
Change the expiration date to suit your need if it is omitted the
cookie will expire when the client closes the window
The sub procedure here should be associated with your submit button
To retrieve the cookie, you need to search the documents cookies for
the key your looking for, in this case "Username"
<Script Language="VBScript"
<!--
Sub Window_OnLoad()
Rem this will to you where your Username cookie begins
Dim iLoc
iLoc=Instr(Document.Cookie,"Username")
End Sub
-->
</Script>
From there you can strip the unwanted elements from the string until
you have just the value the user entered. Repeat this process for
the "Password" field
Hope this helps
