Cookie Test - Login v2

<% @ Language="JavaScript" %>

<%

Here will check for the existence of a cookie.

If the cookie exist then redirect the user immediately to CheckLogin2.asp

if (Request.Cookies("SavedLogin").HasKeys) {
     Response.Redirect("CheckLogin2.asp?cookie=1");  // redirect to CheckLogin2.asp
}

%>

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

<BODY>

Please enter your e-mail address and password to login to the system.

<FORM ACTION="CheckLogin2.asp" METHOD="POST">
     E-Mail Address: <INPUT TYPE="Text" NAME="email"><BR>
     Password: <INPUT TYPE="Password" NAME="Password"><P>
     <INPUT TYPE="Checkbox" NAME="SaveLogin" VALUE="ON">
     Save Login as a Cookie?<P>
     <INPUT TYPE="Submit" VALUE="Login"><INPUT TYPE="RESET">
</FORM>