Response object error 'ASP 0156 : 80004005'

Header Error

/default-inc.asp, line 12

The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.


lo script è questo:

codice:
<%
dim ip, cookie

ip = Request.ServerVariables("REMOTE_ADDR")

cookie= request.cookies("ing")

if (cookie=ip) then

else

response.cookies("ing") = ip
Response.Cookies("ing").Expires = DateAdd("h", 12, Now())

response.redirect ("script.asp")

end if

%>