I have a simple script on a page to restrict access based on whether the person is logged in to the site or not, it is:
<%@LANGUAGE="VBSCRIPT"%>
<%
If Session("MM_UserName"
= "" Then
Response.Redirect("../badpage.asp?pagetype=1"
End If
%>
<html>.................................
I'd like to make it so that only someone (say their log in name is jonathan) can see the page.
How do I do that? I tried
<%
If Session("MM_UserName"
= "jonathan" Then
but that didn't work, it was as if the code wasn't there at all, anyone can see the page.
Ladyborg
"Many of life's failures are people who did not realize how close they were to success when they gave up." [Thomas A. Edison]
<%@LANGUAGE="VBSCRIPT"%>
<%
If Session("MM_UserName"
Response.Redirect("../badpage.asp?pagetype=1"
End If
%>
<html>.................................
I'd like to make it so that only someone (say their log in name is jonathan) can see the page.
How do I do that? I tried
<%
If Session("MM_UserName"
but that didn't work, it was as if the code wasn't there at all, anyone can see the page.

"Many of life's failures are people who did not realize how close they were to success when they gave up." [Thomas A. Edison]