I'm attempting to limit access to a page without creating a whole load of session values and there for re-writing the page. So I've come up with the following code on a test page
Expand|Select|Wrap|Line Numbers
- <%@ Language=VBScript %>
- <%Option Explicit%>
- <%
- IF session("Userid")<>request.Querystring("Stu") and session("Userid2")<>request.Querystring("Stu") Then
- response.redirect "../../login/errors/notloggedin.asp"
- End if
- %>
If I get it to print out the session userid and the url stu value they are the same yet it still redirects me to the error page. What am I missing?