
| <%
@ Language="JavaScript"
%>
<% var ExpireDate = new Date(); When the FORM information is passed to the checkLogin.asp page, the first thing that we want to do is see if the user has requested that their login information be saved in a cookie. We are declaring variable called bLoginSaved . This Boolean variable will be set to true if the user wants a cookie set. It will be false if they do not. This will allow us to display a notification later in the page. We will be creating one cookie with 2 keys. The name of the cookie we are creating is SavedLogin. It will contain 2 keys of information. These keys will hold the email address and password of the user. The values for these keys will come from the FORM collection of the Request Object. getVarDate() - is used when interacting with ActiveX or other objects that accept and return date values in VT_DATE format. NOTE: An example when this is necessary is when using Access Database's Date Property or working with ASP Cookies' expiration. if (Request("SaveLogin")
== "on") { bLoginSaved = true;
// save
the login info %> <HTML> <BODY> If bLoginSaved is set to true, then will display a message for the user. If not, then we will just go on displaying the rest of the page. <% if (bLoginSaved) { %> Saving Login information to a cookie <HR> <% } %> Finally, we display the user's email address that was just entered. This is done primarily as a validation that the correct information was entered. To display the email address, we retrieve it through the Request Object. Thank you for logging into the system.<P> E-Mail address confirmation: <% = Request("email") %> </BODY> |