timothy2l Posted August 19, 2003 Posted August 19, 2003 I have several pages which require the user to login to gain access. If the user clicks on any link, they are redirected to a login page. After logging in, they are redirected to the page they wanted to view. They also now have access to all other pages (only one login is reguired). Actually, all I have are the pages, the login doesn't work, its just what I would like to have. Here is what I need in English, but I need it to be converted to VB. session("Username") = txtUsername.text session("Password") = txtPassword.text If session("Username") AND session("Password") = Corresponding database fields THEN the user is redirected to the desired page and also has access to all other pages else lblErrorMsg.visible=True end if Hopefully this makes sense. Im a beginner at programming so Im not even sure if I have the right idea. Any help is appreciated. Thanks in advance Quote
*Experts* mutant Posted August 19, 2003 *Experts* Posted August 19, 2003 I would recommend using Forms Authentications instead of doing all this by yourself. Just Google "Forms Authentication" and you will find a lot of good tutorials. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.