The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Code:
strIMDBs="Display"
If Request("strIMDBs") > "" Then
strIMDBs=Trim(Request("strIMDBs"))
IMDBI=Application(strCookieURL & "IMDBI")
Response.Cookies(strUniqueID)("IMDBI") = strIMDBs
Response.Cookies(strUniqueID & "IMDBI").Expires = Date + 30
ElseIf Request.Cookies(strUniqueID)("IMDBI") > "" Then
strIMDBs=Request.Cookies(strUniqueID & "IMDBI")
End If
For whatever reason, it dies, but the same server writes cookies just fine on another page. Error captured this, it seems that it thinks the cookie is a header?
006~ASP 0156~Header Error~The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.