% Login = False Guest = 2 If Request("Username") <> "" Then %> <% If Login <> False Then NewDate = DateAdd("n", 90, Now) ' This makes the password expire after 90 minutes. Response.Cookies("Username") = Request("Username") Response.Cookies("Username").Expires = NewDate Response.Cookies("Password") = Request("Password") Response.Cookies("Password").Expires = NewDate Response.Cookies("Logged").Expires = NewDate Else If Request("Username") = "ResetUser" And Request("Password") = "ResetUser" Then Response.Cookies("Username") = "" Response.Cookies("Password") = "" Response.Cookies("Logged") = "" Response.Redirect "controlpanel.asp" Else InvalidPass = True End If end if end if if Login = True Then Response.Cookies("Logged") = "OK!5bW3" End If %>
![]() |
|
|||
|
|
![]() |
|
||
|
|
Login
<% If InvalidPass = True then %> The user name or password you entered did not match any we have on file. Please try again. <% End If If Login = True Then %> <% else %> <% End if %> |
|
|
|
|
|
||||
|
|
|
|||