Hello people!
I've implemented a simple login/password security system for my website. Here's the problem, in any of the other pages aside from the login page, I tried to put in a little bit of VBScript that will redirect the user to the login page if they had not logged in yet. But when I test them, I get this error:
Response object error 'ASP 0156 : 80004005'
Header Error
/Sales/add.asp, line 82
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
Does anyone know what this means? I'm running on Windows 98SE with PWS and IE 5.0.
Thanks,
Jisoo22
P.S. Here's the code I used:
<%
If Session("LoggedIn" = "TRUE" Then
'Do nothing
Else
'User is not logged in, generate error.
Response.Redirect "Default.asp"
End If
%>
I've implemented a simple login/password security system for my website. Here's the problem, in any of the other pages aside from the login page, I tried to put in a little bit of VBScript that will redirect the user to the login page if they had not logged in yet. But when I test them, I get this error:
Response object error 'ASP 0156 : 80004005'
Header Error
/Sales/add.asp, line 82
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
Does anyone know what this means? I'm running on Windows 98SE with PWS and IE 5.0.
Thanks,
Jisoo22
P.S. Here's the code I used:
<%
If Session("LoggedIn" = "TRUE" Then
'Do nothing
Else
'User is not logged in, generate error.
Response.Redirect "Default.asp"
End If
%>