This topic is locked
[SOLVED]

 Login

6/23/2003 8:17:37 AM
ASPRunnerPro General questions
author

Hi,
I want to create a login page with several users(passwords), how do I do that?

Where are these hard coded info ? If I want to store the user and password information in the database, do I have to put in the same database as the data?
Thanks a lot.
J Michelle

admin 6/23/2003

Hi,
Here is what you need to do:

On the Security options tab select Username and password from database option. Select database table that holds passwords. Select username and password fields.
This table should be in the same database.
Best regards,

Sergey Kornilov

500039 6/23/2003

Thanks for the reply.
I have read from somewhere saying that it is not safe to put username/password info in the same place as the data. Is that possible to put the username/password info outside of webserver when using ASPrunner?
With ASPRunner, is that possible to have several users as hardcoded?
Thank.

admin 6/23/2003

Hi,
personally I don't think that separating data and passwords will be more secure than have then stored in the same place.
However that can be easily done with ASPRunner.

  1. First of all run ASPRunner and generate ASP pages. Use Username and password from database security option.
  2. Open login.asp in Notepad or any other text editor. Go to lines 34-37.
    Set rs = server.CreateObject ("ADODB.Recordset")

    set dbConnection = server.CreateObject ("ADODB.Connection")

    dbConnection.ConnectionString = strConnection

    dbConnection.Open



Replace strConnectionwith another connection string pointing to another database or to another database server.

Sample connection string can be found in include/dbconnection.aspfile.
I hope this helps.
Best regards,

Sergey Kornilov

500040 6/25/2003

Thanks. I will try it.