Hello, I am trying to setup a log-in screen and am having trouble figuring out how to set the session cookie. I found the bit of code below, and it works if I enter a specific 'email' and 'password' into the "if" statement, however we have multiple users logging into the section. How can I set it up so that if the form is successfully submitted using any of the multiple email/password combos then it creates the session? Example found... <% Username=Request.Form("email") Password=Request.Form("Password") If email="emailaddress" AND Password="password" Then Session("Loggedin")=True End If %> I am new to asp and I really appreciate your help!!
hi, You can either code a script to search for the user/pass in a data base or you can use the following: <% Username=Request.Form("email") Password=Request.Form("Password") If (email="emailaddress" AND Password="password") OR (email="emailaddress2" AND Password="password2") OR (email="emailaddress3" AND Password="password3") Then Session("Loggedin")=True End If %>