I have an ASP page that I would like to redirect if one value is not correct. I am using the following code at the beginning of my page code:
Response.buffer = true
if session("CurrentSessionID" = "" then
Response.Flush
Response.Redirect("index.asp"
end if
But I always get the error ==> The HTTP headers are already written to the client browser.......
Does somebody could give me a hint on how to solve my problem?
Thanks
Louis
Response.buffer = true
if session("CurrentSessionID" = "" then
Response.Flush
Response.Redirect("index.asp"
end if
But I always get the error ==> The HTTP headers are already written to the client browser.......
Does somebody could give me a hint on how to solve my problem?
Thanks
Louis