Cookie Test - Check Login v1

<% @ Language="JavaScript" %>

<%

var ExpireDate = new Date();

ExpireDate.setMonth(ExpireDate.getMonth() + 3);

if (Request("SaveLogin") == "ON") {
     Response.Cookies("SavedLogin")("EMail") = Request("email");
     Response.Cookies("SavedLogin")("pw") = Request("password");
     Response.Cookies("SavedLogin").expires = ExpireDate.getVarDate();

     bLoginSaved = true;
}
else bLoginSaved = false;

%>

<HTML>
<HEAD><TITLE>
Cookie Test - Check Login</TITLE></HEAD>

<BODY>

<% if (bLoginSaved) %>

Saving Login information to a cookie

<HR>

Thank you for logging into the system.<P>

E-Mail address confirmation: <% = Request("email")  %>

</BODY>
</HTML>