This topic is locked

Admin option on the list page.

6/19/2006 11:27:01 AM
ASPRunnerPro General questions
B
Bobs author

Hi,

I am sure you allready have answered this question but I think it got lost on the board during the lost data ofver the past 2 months.
Anyhow appreciate your help on this one.
I am wishing to get users to auto login as guest to the list page missing out the login page.

And then put a admin link in the list page for the admin users to log in. Or a user simply logs out and they then get presented with the login page so an admin can easily login.
I dont wish to use the forced LOGIN page as 99% of all my users will not admin users so it would be best to get them to auto login to the listpage as guest. An admin user would logout and then login as an admin from the redirected page.
Hope the above makes sence.
Kind regards

Bob

B
Bobs author 6/20/2006

Hi,

I am sure you allready have answered this question but I think it got lost on the board during the lost data ofver the past 2 months.
Anyhow appreciate your help on this one.
I am wishing to get users to auto login as guest to the list page missing out the login page.

And then put a admin link in the list page for the admin users to log in. Or a user simply logs out and they then get presented with the login page so an admin can easily login.
I dont wish to use the forced LOGIN page as 99% of all my users will not admin users so it would be best to get them to auto login to the listpage as guest. An admin user would logout and then login as an admin from the redirected page.
Hope the above makes sence.
Kind regards

Bob
Found the code now:
If Session("UserID")="" then

Session("UserID")="Guest"

Session("AccessLevel")=ACCESS_LEVEL_GUEST


End If
basically edit the list file and locate <-If Session("UserID")="" then ->

And then remove what ever is under it and replace with the bold above.

Done the job just right.