I have a page of login info that redirect to a page associated with the login info, so i have a page.asp for each unique login. The page is getting long and slow, I know arrays are faster that requests...correct? if so how could i speed this up:
Code:
If Request.Form("login") = "sen" AND Request.Form("password") = "2r3ez9" Then
Session("login") = "1"
Response.Redirect "sen.asp"
ElseIf Request.Form("login") = "BUTLER" AND Request.Form("password") = "1LePAGE2" Then
Session("login") = "1"
Response.Redirect "butler.asp"
ElseIf Request.Form("login") = "drory" AND Request.Form("password") = "amechia" Then
Session("login") = "1"
Response.Redirect "drory.asp"
ElseIf Request.Form("login") = "tavares" AND Request.Form("password") = "1q2w3e" Then
Session("login") = "1"
Response.Redirect "tavares.asp"
ElseIf Request.Form("login") = "gill" AND Request.Form("password") = "12qw" Then
Session("login") = "1"
Response.Redirect "gill.asp"
ElseIf Request.Form("login") = "donde" AND Request.Form("password") = "123qwe" Then
Session("login") = "1"
Response.Redirect "donde.asp"
ElseIf Request.Form("login") = "abrams" AND Request.Form("password") = "1a2b3c" Then
Session("login") = "1"
Response.Redirect "abrams.asp"
ElseIf Request.Form("login") = "baalbaki" AND Request.Form("password") = "1qaz2wsx" Then
Session("login") = "1"
Response.Redirect "baalbaki.asp"
ElseIf Request.Form("login") = "park" AND Request.Form("password") = "1q2w3" Then
Session("login") = "1"
Response.Redirect "park.asp"
ElseIf Request.Form("login") = "sohn" AND Request.Form("password") = "11qq22ww" Then
Session("login") = "1"
Response.Redirect "sohn.asp"
ElseIf Request.Form("login") = "ORUNCAK" AND Request.Form("password") = "1QAZ2WSX" Then
Session("login") = "1"
Response.Redirect "oruncak.asp"
ElseIf Request.Form("login") = "Phil" AND Request.Form("password") = "2W4R6Y" Then
Session("login") = "1"
Response.Redirect "phil.asp"
ElseIf Request.Form("login") = "paskov" AND Request.Form("password") = "zaq1xsw2" Then
Session("login") = "1"
Response.Redirect "paskov.asp"
ElseIf Request.Form("login") = "Ajmera" AND Request.Form("password") = "11qq22ww" Then
Session("login") = "1"
Response.Redirect "pajmera.asp"
ElseIf Request.Form("login") = "CANAM" AND Request.Form("password") = "1A2B3C" Then
Session("login") = "1"
Response.Redirect "canam.asp"
ElseIf Request.Form("login") = "NewWorld" AND Request.Form("password") = "1qaz" Then
Session("login") = "1"
Response.Redirect "newworld.asp"
ElseIf Request.Form("login") = "Bala" AND Request.Form("password") = "1bala2" Then
Session("login") = "1"
Response.Redirect "bala.asp"
ElseIf Request.Form("login") = "Coldwell" AND Request.Form("password") = "1Q2W3E" Then
Session("login") = "1"
Response.Redirect "coldwell.asp"
ElseIf Request.Form("login") = "Russo" AND Request.Form("password") = "1Russo2" Then
Session("login") = "1"
Response.Redirect "russo.asp"
ElseIf Request.Form("login") = "Coates" AND Request.Form("password") = "Coates246" Then
Session("login") = "1"
Response.Redirect "coates.asp"
ElseIf Request.Form("login") = "Transport" AND Request.Form("password") = "1help2" Then
Session("login") = "1"
Response.Redirect "transporthelp.asp"
ElseIf Request.Form("login") = "RE/MAX" AND Request.Form("password") = "4sale" Then
Session("login") = "1"
Response.Redirect "mississauga4sale.asp"
ElseIf Request.Form("login") = "AUNGER" AND Request.Form("password") = "1BECKWITH2" Then
Session("login") = "1"
Response.Redirect "hitchins.asp"
ElseIf Request.Form("login") = "Baranov" AND Request.Form("password") = "1q2w3e4r" Then
Session("login") = "1"
Response.Redirect "baranov.asp"
ElseIf Request.Form("login") = "Sutton" AND Request.Form("password") = "1Bihr2" Then
Session("login") = "1"
Response.Redirect "bihr.asp"
Else
Response.Redirect "login.asp"
End If