Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Cookie Issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 13 October 2015 :  17:53:51  Show Profile  Reply with Quote

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.

Edited by - Carefree on 13 October 2015 19:45:34

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 13 October 2015 :  19:31:46  Show Profile  Reply with Quote
Solved it. I just moved the entire routine above everything else.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07