seraph766
08-15-2006, 04:03 PM
I feel kind of stupid asking this, but how can I use ASP to create a simple, secure login for a page? No need for independant passwords--everyone will have the same one...help plz
|
Click to See Complete Forum and Search --> : Simple ASP Logins? seraph766 08-15-2006, 04:03 PM I feel kind of stupid asking this, but how can I use ASP to create a simple, secure login for a page? No need for independant passwords--everyone will have the same one...help plz Terrorke 08-16-2006, 07:24 AM you can do this via a session variable. If a certain criteria is correct you can set a session variable to a certain value. On every page you want to be secure you can check is the session has the correct value. A little example can be found here : if criteria is correct then session("login") = 1 else session("login") = 0 end if 'checking if the login is correct. If not redirect to the loginpage if not session("login") = 1 then response.redirect("login.asp") end if This is a very basic example. But is should help you in the wright direction ahk2chan 08-16-2006, 10:22 AM You may also need either a database of user names and password, or you can have that hard-coded in your login.asp. seraph766 09-01-2006, 09:30 PM Thanks for your help! I'm kind of a noob in ASP, so I needed some advice. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |