I hope someone can help with this one.
This is a include file that is used to check if a user is logged in before displaying a page.
I get this error when any page that references the include page.
-----Start error message -----------
Response object error 'ASP 0156 : 80004005'
Header Error
/staffdev/_reg/_asp/passprotect.inc, line 16
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
-------End error message----------------
This is the code that is contained in the passprotect.inc file.
What do I need to change to make this work as designed?
---------------------------------- Begin code ----------------------------
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<%
'First we check to see if the user is logged in
IF Session("rPassword") = "" THEN
'If their session is empty then we create a session for the current URL they were requesting
Session("ORI_URL") = Request.ServerVariables("Path_Info")
'Then we redirect them to the login page
Response.Redirect("logon.asp")
Else
End IF
%>
<body>
</body>
</html>
------------------------------ End Code ----------------------------------
any help is appreciated.
Dan