G
|
gonzalosb author 6/9/2014 |
im trying to do it over the URL instead and i found this on the ASP Tips and tricks at this link autologin over URL but doesnt work. strUsername = Request("username") strPassword = Request("password") if strUsername<>"" and strPassword<>"" then strSQL = "select * from LoginTableName where " & CSmartStr(AddFieldWrappers(cUserNameField)) & "=" & CSmartStr(strUsername) _ & " and " & CSmartStr(AddFieldWrappers(cPasswordField)) & "=" & CSmartStr(strPassword) logged = false doAssignment rs,db_query(strSQL,conn) doAssignment data,db_fetch_array(rs) if bValue(data) then if IsEqual(data(cUserNameField),sUsername) and IsEqual(data(cPasswordField),sPassword) then logged = true end if end if if bValue(logged) then doArrayAssignment Session,"UserID",pUsername Session("AccessLevel") = ACCESS_LEVEL_USER end if asp_header "Location: menu.asp" response.end end if
|
G
|
gonzalosb author 7/11/2014 |
OK, new turn aoround |
lefty 7/11/2014 | |
OK, new turn aoround can be posible to select what database to use on the login page, ex: UserName : gonzalo Password : sb Database : DB1 Login or do that over URL like: www.mypage/login.asp?database=db1&username=gonzalo&password=sb&login=true so i can use one aplication instead of 10 iqual on my server thanks for your help
|
G
|
gonzalosb author 7/14/2014 |
thanks john for your answer.
|
G
|
gonzalosb author 7/29/2014 |
this can be part of my solution, only that is for PHP not ASP... can someone help me to translate it ? |
mperry622 8/5/2014 | |
Honestly - I have 23 projects and they all use the same db with user name and passwords and email... that way everything is the same... but yes under security use a DB that has username and password and your life will be so much simpler... |
G
|
gonzalosb author 9/4/2014 |
i steel working on this if anyone have any solution, idea or workaround. |
lefty 9/7/2014 | |
Honestly - I have 23 projects and they all use the same db with user name and passwords and email... that way everything is the same... but yes under security use a DB that has username and password and your life will be so much simpler...
|
G
|
gonzalosb author 9/9/2014 |
thank you John for your answer.
|