![]() |
Sergey Kornilov admin 5/7/2004 |
Hi, |
T
|
Tegwin author 5/7/2004 |
Ok that sort of works, its not quite what I had in mind. Let me try and explain. |
![]() |
Sergey Kornilov admin 5/9/2004 |
Here is what you can do: <% Session("UserID") = "Guest" If Session("UserID")="" Then Response.Redirect "login.asp" End If %>
|
T
|
Tegwin author 5/10/2004 |
Excellent.. Thanks I will give that a try |
T
|
Tegwin author 5/10/2004 |
Ok I have tried this and it sort of works. |
![]() |
Sergey Kornilov admin 5/10/2004 |
Sorry, here is the correct one: <% Session("UserID") = "Guest" Session("AccessLevel")=ACCESS_LEVEL_GUEST If Session("UserID")="" Then Response.Redirect "login.asp" End If %> |
T
|
Tegwin author 5/10/2004 |
Thanks once again I have tried this and it does the opposite now. When I go to the ...list.asp page it logs in as guest no problem. However this time when I log in as Admin it remains as guest with no way to add new records. |
![]() |
Sergey Kornilov admin 5/10/2004 |
One more try (I hope it's the last one): <% If Session("UserID")="" Then Session("UserID") = "Guest" Session("AccessLevel")=ACCESS_LEVEL_GUEST End If %> |
T
|
Tegwin author 5/11/2004 |
Ok it actually works now but only the first time. |