This topic is locked
[SOLVED]

 ADD option for login as guest

5/17/2004 10:37:51 AM
ASPRunnerPro General questions
author

How can I do this??

B
berga@alpenacc.net 5/18/2004

Maybe I can help you on this. on the create login page, you have to click on the advanced button. Then you can enable, login as guest as an option. But, I don't believe you can hard code the user name and password, but you have to have the users names and passwords as a table lookup, which is the second radial button option on the main "create login" page. then the advanced button will become available, then you can choose login as guest.
Hope this helps.

Allan

swat 5/18/2004

james-
I would say this:

-create a login name as Guest on your DB

-do not assign a password for this login name

Now:

On the main display page .......list.asp very first we have

a code to see if login information is entered and entered correctly.

if login name <>""

..................


on this line of code just add this:

if login name = "Guest"

............. go to list.asp


I assume this will solve this problem..

let me know

Sergey Kornilov admin 5/19/2004

Hi,
you need to modify CheckSecurity function in ..._list.asp file. See mychanges in bold:

Function CheckSecurity(strValue, strAction)

if Session("AccessLevel")=ACCESS_LEVEL_GUEST then

    if UCase(strAction)="ADD" then

      CheckSecurity = True

    else

      CheckSecurity = False

    end if

    Exit Function

end if

...