Calling All .ASP programmers - ASP Login
Calling All .ASP programmers - ASP Login
Author
Discussion

Mini_Lund

Original Poster:

1,743 posts

240 months

Tuesday 13th April 2010
quotequote all
Hi guys,

To simplify; I am creating a website whereby staff are able to insert, add and delete records to a MS database. However, I need to create a simple login page in .ASP to allow staff to login to view particular pages. Essentially a small company extranet.

I have searched Google and researched .ASP to no avail, have you any ideas on how to create a simple login field in ASP? I am programing in VB.

Cheers

Don

28,378 posts

314 months

Tuesday 13th April 2010
quotequote all
Google "forms based authentication". You will find loads of articles, particularly on MSDN, about how to go about doing this sort of thing.

Typically you use an HTML <INPUT type="password"> to accept the password. Generally it's up to you to check the user's username and password in some table you keep in the db, or against Active Directory if you want to show off, and also to check in each subsequent page that the user has authenticated.

On the other hand you could use IIS to control access to the directory. Not as sweet, though.

Mini_Lund

Original Poster:

1,743 posts

240 months

Tuesday 13th April 2010
quotequote all
Don said:
Google "forms based authentication". You will find loads of articles, particularly on MSDN, about how to go about doing this sort of thing.

Typically you use an HTML <INPUT type="password"> to accept the password. Generally it's up to you to check the user's username and password in some table you keep in the db, or against Active Directory if you want to show off, and also to check in each subsequent page that the user has authenticated.

On the other hand you could use IIS to control access to the directory. Not as sweet, though.
Hi Don, just been fiddling around whilst you were replying, I've managed to do it, well I'm logging in at least. Using some SQl statements.

Cheers

KaraK

13,865 posts

239 months

Tuesday 13th April 2010
quotequote all
Mini_Lund said:
Don said:
Google "forms based authentication". You will find loads of articles, particularly on MSDN, about how to go about doing this sort of thing.

Typically you use an HTML <INPUT type="password"> to accept the password. Generally it's up to you to check the user's username and password in some table you keep in the db, or against Active Directory if you want to show off, and also to check in each subsequent page that the user has authenticated.

On the other hand you could use IIS to control access to the directory. Not as sweet, though.
Hi Don, just been fiddling around whilst you were replying, I've managed to do it, well I'm logging in at least. Using some SQl statements.

Cheers
I was just writing a reply to this myself... beaten to the punch! It's worth mentioning to you though to ensure that you are stripping out any SQL characters out of the input. You don't want to get injected against biggrin