|
| |
|
|
Mav44
Posts: 197 Joined: 6/25/2006 Status: offline
|
Login Only Checking First Session Value - 10/17/2009 12:38:19
I have the following login on my pages and I use it to check the login "auser" and check for rights "admin". I cannot figure why this will not work. It is only checking the first session value and not the second requirred value. Any suggestions? <%
if session("auser") = "" then
response.redirect ("login.asp?requester=main.asp")
elseif session("admin") = "" then
response.redirect ("login.asp?requester=main.asp")
end if
%>
|
|
|
|
Mav44
Posts: 197 Joined: 6/25/2006 Status: offline
|
RE: Login Only Checking First Session Value - 10/17/2009 17:05:55
I have cleaned this code up to look like: <% if session("ausr") = "" or session("admin") = "" then response.redirect ("login.asp?requester=main.asp") end if %> I have found that since I am using an Access Database even the blank fields are passing a value. Is there a way to define the access blank field? something like <% if session("ausr") = "" or session("admin") = empty then response.redirect ("login.asp?requester=main.asp") end if %> This does not work but you get the idea. I only want grant access to the page to users that have a value in the "admin" field.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|