General discussion

Locked

Asp Login and Password

By eb_alavi ·
Hi,
my question is about ASP.
I make one database with Access
My table has 3field.
Login ,Password and group.
I make one page ,It give login and password.
If password is correct ...
My question is: When password is correct
I want Give groupof user and send it to another page.
How can I do it ?

Thanks,
M.Alavi

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Asp Login and Password

by Jay Eckles In reply to Asp Login and Password

Doesn't sound very difficult...when the user hits the login.asp page, you do a lookup on the table, basically
SELECT * FROM table WHERE LOGIN=Request.Querystring( "Login" )

Then compare the password in the Request to the password from the table...if they match, set a Session variable with the key "Group", then redirect the user. There are alternatives to setting "Group" as a Session variable - you could add the info to the URL, or you could set a cookie, etc. etc.

Good luck.

Jay Eckles
www.jayeckles.com

Collapse -

Asp Login and Password

by eb_alavi In reply to Asp Login and Password

Poster rated this answer

Collapse -

Asp Login and Password

by eb_alavi In reply to Asp Login and Password

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums