This topic is locked

Passwords

7/1/2005 6:32:24 AM
ASPRunnerPro General questions
C
chris124 author

I've nearly completed my asp pages created by ASP Runner Pro. When I first started I created a password to log in to the Admin area, since then I manually changed pages etc.
Now I wish to remove the password from the Admin login page and add login passwords to the edit and add pages.
Because of all the manual work I've done I don't want to run the ASPRunner Pro builder to change this feature as I'm sure I'm going to over write my manual inputted code.
Can you tell me how to manually remove the login feature from the login page and insert logins on my edit and add pages.
Thanks

Sergey Kornilov admin 7/4/2005

I'm not sure if I follow you.
Do you like to ask user for login/password on ADD/EDIT pages?

C
chris124 author 7/5/2005

Yes, I want to add a password / username to the add and edit pages, but I also want to remove the password I have already set up on the login page.
I wish to do this manually as I've modified code on various pages manually and don't wish to overwrite them with ASPRunner Pro

Sergey Kornilov admin 7/5/2005

I'm confused.
If you remove login/password from login page there is no purpose to have this page anymore.
Also I cannot imagine having two forms ( one for login and another one for data input ) on ADD/EDIT pages.
Please clarify.

C
chris124 author 7/5/2005

It maybe I'm misunderstanding things, but the concept is as follows:
visitors can go to the index page of the database to view available items, in this case property for sale, they can view and print individual items but I don't want them accessing the edit or add items page, these pages I want password protected so only the site administrator can use them.

Sergey Kornilov admin 7/5/2005

I see what you saying now.
The easiest way to implement this is to have two separate interfaces for regular users and for an admin. Create two projects in ASPRunnerPro and put output files into two different output folders.
Another way - create a project with database-based security. Add Admin user for full access and Guest user with readonly access. Add the following lines in the beginning of ..._list.asp file:

<%

Session("UserID")="Guest"

Session("AccessLevel")=ACCESS_LEVEL_GUEST

%>


Point regular users to ..._list.asp page while admin should go to login.asp page.
I hope this helps.

500270 7/7/2005

Thanks Admin
I chose the first method and create two interfaces, both work as I would like.