Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...